Results 1 to 4 of 4

Thread: Adding Sidebars

  1. #1
    Forum Member graphix007's Avatar
    Join Date
    Jun 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Adding Sidebars

    This is my first post and I really hope you guys are able to help. I have been trying to add more sidebars to the functions.php and have been successful until now. I havnt changed the way I do it and it was working fine.
    Example:
    register_sidebar(array(
    'name' => 'PagesSidebar13',
    'description' => esc_html__('A widget area, used as a sidebar for the Page Template 13.', 'qualifire'),
    'before_widget' => '<div id="%1$s" class="widget %2$s substitute_widget_class">',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widgettitle">',
    'after_title' => '</h3>',
    ));
    register_sidebar(array(
    'name' => 'PagesSidebar14',
    'description' => esc_html__('A widget area, used as a sidebar for the Page Template 14.', 'qualifire'),
    'before_widget' => '<div id="%1$s" class="widget %2$s substitute_widget_class">',
    'after_widget' => '</div>',
    'before_title' => '<h3 class="widgettitle">',
    'after_title' => '</h3>',
    ));
    I created the page-PageTemplate14.php and the sidebar-PagesSidebar14.php
    and 14 won't show but 13 does.
    DRIVING ME NUTS
    any suggestions?

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,006
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    What theme are you referring to then.
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Forum Member graphix007's Avatar
    Join Date
    Jun 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    qualifire

    theme is qualifire

  4. #4
    Forum Member ubaid12j's Avatar
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <?php if ( function_exists('register_sidebar') ){
    register_sidebar(array(
    'name' => 'my_mega_menu',
    'before_widget' => '<div id="my-mega-menu-widget">',
    'after_widget' => '</div>',
    'before_title' => '',
    'after_title' => '',
    ));
    } ?>


    // How to use in your code

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('my_mega_menu') ) : ?><?php endif; ?>

    Check this code.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sidebars / Widgets
    By gershon in forum Help Using ClassiPress
    Replies: 1
    Last Post: November 21st, 2011, 01:17 AM
  2. Sidebars
    By sromero410 in forum Report Clipper Bugs
    Replies: 1
    Last Post: September 28th, 2011, 06:03 PM
  3. Sidebars
    By abhijeet in forum WordPress General Discussion
    Replies: 1
    Last Post: September 21st, 2011, 02:34 AM
  4. Widgets and Sidebars
    By mavl in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: December 30th, 2010, 03:16 AM
  5. Ad Widgets on Multiple Sidebars
    By tylernorris in forum Help Using ClassiPress
    Replies: 3
    Last Post: April 10th, 2010, 02:23 PM