• 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

    [please read and apply the forum guidelines for posting code]

    // 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Change coding to which coding?

    Thread Starter sktrader

    (@sktrader)

    Dear Richard, thanks for writing, above there are two codes of widgets, one appear on home page and other appear on single page.
    is it possible to change the coding of widget so that widget will appear on all pages?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help’ is closed to new replies.