WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Twelve
Home page not displaying up the new added widget (3 posts)

  1. optimizzo
    Member
    Posted 10 months ago #

    Hi,

    I just wanted to display my products slider in my site's content area(not in sidebar) and thus I added a new widget area in the functions.php

    register_sidebar( array(
    'name' => __( 'postslide', 'twentytwelve' ),
    'id' => 'post_slide',
    'description' => __( 'An optional widget area for your site header', 'twentytwelve' ),
    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    'after_widget' => "</aside>",
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    ) );

    And to bring the widget in the site pages(especially in front page), I just added the code in my page.php

    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('postslide')) : ?>
    [ do default stuff if no widgets ]
    <?php endif; ?>

    After then, if I add something to this particular widget, it is showing in all the other pages other than the home page.

    Could someone please come fast to help on this?

    Thanks in Advance.

  2. optimizzo
    Member
    Posted 10 months ago #

    friends.....any advices?

  3. streetrose
    Member
    Posted 9 months ago #

    this is happening to me s as well. any solution to this? What might be the culprit?

Reply

You must log in to post.

About this Theme

About this Topic