Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author 404

    (@ahspw)

    You’re right, P2 theme’s sidebar seems to be broken when WIT is activated!

    I’ll look into this. Thanks for your feedback.

    Thread Starter laurentdesvignes

    (@laurentdesvignes)

    Great news. Thank you so much.

    Plugin Author 404

    (@ahspw)

    Hi again,
    Sorry I’m late. I’ve been (and still) quite busy.

    P2 themes assume there is only one sidebar and it should be theirs!
    This is causing conflicts with any plugin that adds new sidebars.

    To fix this, do those two simple steps to give P2’s sidebar a specific id (I’m using this P2 Theme):

    1. Simply edit line number 216 of the file named functions.php located under the root directory of p2 theme, and add the following piece of code to beginning of the line:
    'id' => 'sidebar-1',
    Now line number `216′ should look like:
    'id' => 'sidebar-1', 'name' => __( 'Sidebar', 'p2' ),

    2. Now simply edit line number 14 of the file named sidebar.php located under the root directory of p2 theme, and add the following piece of code as an argument for the function dynamic_sidebar:
    'sidebar-1'
    Now line number 14 should look like:
    if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('sidebar-1') ) {

    I suggest you report this bug to the P2 theme authors.

    Hope this helps and thanks for your feedback.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Doesn't appear to work with p2 theme(s)’ is closed to new replies.