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

  1. optimizzo
    Posted 3 years ago #


    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
    Posted 3 years ago #

    friends.....any advices?

  3. streetrose
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic