WordPress.org

Forums

Widgets In Tabs
[resolved] Doesn't appear to work with p2 theme(s) (4 posts)

  1. laurentdesvignes
    Member
    Posted 1 year ago #

    p2 is an Automattic theme.

    There are also a number of child or 'based on' themes.

    see http://wordpress.org/themes/search.php?q=p2

    there appears to be a conflict with your plugin

    https://wordpress.org/plugins/widgets-in-tabs/

  2. Anas H. Sulaiman
    Member
    Plugin Author

    Posted 1 year ago #

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

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

  3. laurentdesvignes
    Member
    Posted 1 year ago #

    Great news. Thank you so much.

  4. Anas H. Sulaiman
    Member
    Plugin Author

    Posted 11 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Widgets In Tabs
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags