I am setting up a new site for a client and I need to have a slider show up, full width on the homepage, and still be able to use widgets on the right rail. I've created a page called Homepage Slider with the slider shortcode and created a slides page and made my slide pages children of the slides page. I'm using a bf Page widget in the Adspace- blog homepage nav, but nothing is showing up. When I look at the Hompage Slider page, the slider is showing up and working. What am I missing?
I want to show bfSlider only on my homepage
(5 posts) (2 voices)-
Posted 1 year ago #
-
The "Adspace- blog homepage below nav" is for the blog index page. If you have a static page as the homepage then it will not show up there. You can test with entering some text into the page to see if it's displayed.
An alternative to this method is to use the Blog Posts page template to show the blog posts, then the slider shortcode can be added to the editor of that page.
If you want to add the slider to a static frontpage, just add the slider shortcode directly to that page.
Posted 1 year ago # -
Hi vfxdude!
Thanks for the response. What I really need it the slider to show up full width and under the slider, break the page into two columns. I tried copying your page.php and putting the shortcode in there, but it didn't seem to do anything. You can see what I did here:
<?php
/*
Template Name: Homepage
*/
get_header();
global $bf_misc, $postType;
$postType = apply_filters('bf_post_layout', $postType);if (have_posts()) : while (have_posts()) : the_post();
do_shortcode('[bfslider name="slides" type="page" height="348"]');
bf_featured(); ?><?php bf_before_content(); ?>
<!-- begin #content -->
<div id="content">
<div class="post page <?php bigfeature_post_class(); ?>">
<?php if ($postType == "normal") if ($image = get_image('normal', true)) echo '<div class="postimage">'.$image.'</div>'; ?>
<?php if(is_array($bf_misc) && in_array('pageHeading', $bf_misc)) { ?> <div class="page-title"><h1><?php the_title(); ?></h1></div> <?php } ?>
<?php the_content(__('Read more')); ?>
</div>
<?php endwhile; else: ?>
<div id="content"><p><?php _e('Not Found','BigFeature'); ?></p><?php endif; ?>
</div>
<!-- end #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>What should I be doing to get it working correctly?
Thanks!
RenaPosted 1 year ago # -
Create a page use the deafult page template, then it will have 2 columns (content and sidebar), and add the shortcode into the Feature HTML field below the editor. Shortcodes added to this field will show up above the 2 content columns.
Posted 1 year ago # -
Perfect. This is exactly what I wanted to do. Thank you so much!
Posted 1 year ago #
Reply
You must log in to post.