• hiske555

    (@hiske555)


    Hi,
    I like the plugin very much so far. The only thing i can’t figure out is how to replace my code in sidebar.php.
    This is my Original code:

    <?php
    
    if ( is_active_sidebar( 'sidebar' ) && wpex_sidebar_enabled() == true ) : ?>
        <aside id="sidebar" class="sidebar-container sidebar-primary" role="complementary">
    		<?php dynamic_sidebar( 'sidebar' ); ?>
        </aside><!-- #sidebar -->
    <?php endif; ?>

    I replaced this code with:

    <?php
     global $MultipleSidebars;
     $MultipleSidebars -> dynamic_sidebar();
     ?>

    This shows the sidebars i created, but they are not sidebars anymore. The sidebars are located underneath the page content instead of on the right of the page.
    Hope you can help!

    https://www.ads-software.com/plugins/multiple-sidebars/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrico

    (@andrico)

    Hi hiske555
    Sorry for the delay. ??

    [code]
    <?php

    if ( is_active_sidebar( 'sidebar' ) && wpex_sidebar_enabled() == true ) : ?>
    <aside id="sidebar" class="sidebar-container sidebar-primary" role="complementary">
    <?php
    global $MultipleSidebars;
    $MultipleSidebars -> dynamic_sidebar();
    ?>
    </aside><!-- #sidebar -->
    <?php endif; ?>
    [/code]

    Plugin Author Andrico

    (@andrico)

    <?php
    
    if ( is_active_sidebar( 'sidebar' ) && wpex_sidebar_enabled() == true ) : ?>
    <aside id="sidebar" class="sidebar-container sidebar-primary" role="complementary">
    <?php
    global $MultipleSidebars;
    $MultipleSidebars -> dynamic_sidebar();
    ?>
    </aside><!-- #sidebar -->
    <?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘code in sidebar.php’ is closed to new replies.