Widget under slider possible?

Support Area Forums Foundation Widget under slider possible?

Viewing 3 posts - 1 through 3 (of 3 total)
URL to the page in question: http://nclionscampdogwood.org/
  • Author
    Posts
  • #29574
    Mark Vogler
    Participant

    Bill,

    I’d like to add a testimonials slider widget under the main slider and only take up the same width as the main slider. Can you help with that?

    I have using a child theme

    #29577
    Bill Robbins
    Moderator

    Good Morning Mark,

    You can do that if you’d like to. Copy over the page-home.php file from the original theme to the child theme. Then edit it and look for this section:

    
    </div><!-- #home-top -->
    

    Right above that add in this:

    
    <div id="testimony-widget">
    <?php dynamic_sidebar( 'testimony' ); ?>
    </div>
    

    and save your changes. Next either edit or create a functions.php file in your child theme. Make sure there is a function testimony_sidebar_register() { register_sidebar( array( 'name' => __('Testimony', 'organizedthemes'), 'id' => 'testimony', 'description' => __('Below the slider widget area.', 'organizedthemes'), 'before_widget' => '<div id="%1$s" class="widget %2$s shadow">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>' ) ); } add_action( 'init', 'testimony_sidebar_register' );

    and save your changes. That should hook create a new widget area in your widget admin and also output it on the front end of our site.

    Last up you’ll need to add something like this to the child theme’s style.css file:

    
    @media only screen and (min-width: 1024px) {
    
    	#testimony-widget {
    		float: left;
    		display: inline;
    		width: 630px;
    		position: relative;
    		z-index: 1;
    	}
    
    }
    

    Hope that helps out.

    Have a fantastic weekend,
    Bill

    #29578
    Mark Vogler
    Participant

    Thanks so much! Have a great weekend too!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Widget under slider possible?’ is closed to new replies.