• Hi,

    I’m trying to add a widget on top of my first post and under a carousel, at the top of this page I can get the widget under the first post but I would like to get it on top of the first post?

    here’s the code I’m using to do it

    register_sidebar( array(
    	'name' => 'index-insert',
    	'id' => 'index-insert',
    	'before_widget' => '<div id="%1$s" class="%2$s widget">',
    	'after_widget' => '</div>',
    
    ) );
    <?php if ($count==-0) { ?>
    		<?php dynamic_sidebar('index-top-insert') ?>
    		<?php } ?>
    		<?php $count = $count + 0; ?>

    thanks

Viewing 1 replies (of 1 total)
  • Are you adding this widgetized area inside the loop?

    Not sure how your template file is constructed, but if you can get the register_sidebar code out of the loop you should be able to use the standard registration code.

    Then if the code is above the loop, but below the carousel, it should show up in the right place.

Viewing 1 replies (of 1 total)
  • The topic ‘How do I add a widget on top of the first post?’ is closed to new replies.