Support » Plugins » Need help with Widgetized Area

  • minigemini

    (@minigemini)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

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

    Thread Starter minigemini

    (@minigemini)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need help with Widgetized Area’ is closed to new replies.