• Resolved wisefool

    (@wisefool)


    Hello

    I’m building a custom theme which has a very typical sidebar template but it doesn’t seem to work with your plugin. The sidebar works, the new widget area created with your plugin appears in the editor, but the original sidebar won’t change on the front-end.

    Please let me know if you see something I’ve overlooked. Thank you.

    functions.php

    function register_widget_area2() {
    register_sidebar(
    array(
    'id' => 'global-sidebar',
    'name' => esc_html__( 'Global Sidebar', 'theme_name' ),
    'description' => esc_html__( 'Add widgets and menus to any page.', 'theme_name' ),
    'before_widget' => '<div class="spacer clear></div><li id="%1$s" class="widget %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h4 class="widget-title">',
    'after_title' => '</h4>'
    )
    );
    }


    In my template:
    echo '<div class="col-sm-3">';
    get_sidebar('global-sidebar');
    echo '</div>';

    In sidebar-global-sidebar.php:

    echo '<ul class="sidebar">';
    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('global-sidebar') ) :
    endif;
    echo '</ul>';



    • This topic was modified 1 year, 4 months ago by wisefool.
    • This topic was modified 1 year, 4 months ago by wisefool.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @wisefool,

    This plugin works well with the default Twenty theme series and also many well coded themes. Probably your theme doesn’t follow the WordPress Coding Standards?

    Maybe you can check our Astra theme as a reference to make this plugin works seamlessly on your theme?

    ?Please let us know if you need further assistance.

    Kind regards,
    Herman ??

    Thread Starter wisefool

    (@wisefool)

    Not really resolved but whatever.

    • This reply was modified 1 year, 4 months ago by wisefool. Reason: accuracy
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working with my custom theme, yet.’ is closed to new replies.