• I am posting coding for widget, among them one widget appear on home page and other appear on single/ post page.
    Can any one please change these coding so that widget will appear on all the page
    code for home page is

    // Bottom Widget Area
    	register_sidebar( array (
    		'name' => __( 'Left Sidebar - Homepage', 'theme' ),
    		'id' => 'left-sidebar-homepage',
    		'description' => __( 'Left sidebar widgets on homepage', 'theme' ),
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    		'after_widget' => "</div>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',

    Coding for single page is

    // Content Widget Area
    	register_sidebar( array (
    		'name' => __( 'Left Sidebar - Single/Page', 'theme' ),
    		'id' => 'left-sidebar-single-page',
    		'description' => __( 'Left sidebar widgets on single posts and pages', 'theme' ),
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
    		'after_widget' => "</div>",
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',

    also do i need to change anywhere else to make these code effective

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin]

    [ Please do not bump, it’s not permitted here. ]

  • The topic ‘Help related to widget coding’ is closed to new replies.