WordPress.org

Ready to get started?Download WordPress

Forums

Need help with Widgetized Area (3 posts)

  1. minigemini
    Member
    Posted 2 years ago #

    I have a multilingual site, that using Multisite Language Switcher widgets to switch between languages. And I would like to position this widget on the header right.

    can anyone give me a proper instruction please.

    I have tried to add the code below to my function.php:

    register_sidebars( 1,
    	array(
    		'name' => 'header-right',
    		'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>'
    	)
    );

    And I have also add the code below to my page.php:

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("header-right") ) : ?>
    <?php endif; ?>

    But unfortunately widget doesn't show up on my page.

  2. Does the widget show up in the Appearance -> Widgets section?

  3. minigemini
    Member
    Posted 2 years ago #

    yeah, it does show up in the Appearance -> Widgets section, but it doesn't show on my website.

Topic Closed

This topic has been closed to new replies.

About this Topic