Results 1 to 3 of 3

Thread: Add a sidebar widget

  1. #1
    Thread Starter
    pjreynolds's Avatar
    Join Date
    Oct 2012
    Location
    United Kingdom
    Posts
    137
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Add a sidebar widget

    hi i wish to add a new sidebar widget that is solely for my homepage in job roller.

    i have regsitered in sidebar-themes.php and i have created the file sidebar-homepage.php with the correspoding new name home rather than main such as below

    register_sidebar(array(
    'name' => __('Main Sidebar','appthemes'),
    'id' => 'sidebar_main',
    'description' => '',
    'before_widget' => '<li id="%1$s" class="widget %2$s"><div>',
    'after_widget' => '</div></li>',
    'before_title' => '</div><h2 class="widget_title">',
    'after_title' => '</h2><div class="widget_content">',
    ));

    register_sidebar(array(
    'name' => __('Home Sidebar','appthemes'),
    'id' => 'sidebar_home',
    'description' => '',
    'before_widget' => '<li id="%1$s" class="widget %2$s"><div>',
    'after_widget' => '</div></li>',
    'before_title' => '</div><h2 class="widget_title">',
    'after_title' => '</h2><div class="widget_content">',
    ));


    This is appearing now in the widget area, so i have then gone to index.php and change the current to

    <?php get_sidebar('home'); ?>

    this works if i reference <?php get_sidebar('blog'); ?> or <?php get_sidebar('resume'); ?> but does not work for the new sidebar i have created.

    where else do i need to register the sidebar?

    many thanks

  2. #2
    Thread Starter
    pjreynolds's Avatar
    Join Date
    Oct 2012
    Location
    United Kingdom
    Posts
    137
    Thanks
    8
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Marketplace Seller spartac's Avatar
    Join Date
    May 2011
    Posts
    7,169
    Thanks
    74
    Thanked 829 Times in 807 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    jobthemes.com









    We answer the questions in threads as fast as the private messages, So do not send support questions via private message. Use the forum instead and open a new thread for every issue.
    Before you send any PM , Please read These rules .

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add a new sidebar widget to Vantage
    By overserv in forum Vantage General Discussion (Legacy)
    Replies: 10
    Last Post: July 31st, 2014, 11:09 AM
  2. Cp Ad Categories widget in more than one sidebar?
    By classbr in forum Report ClassiPress Bugs
    Replies: 14
    Last Post: March 11th, 2013, 10:58 PM
  3. Sidebar widget
    By mzaha in forum ClassiPress General Discussion
    Replies: 3
    Last Post: October 26th, 2012, 06:27 AM
  4. Sidebar widget
    By mzaha in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: October 20th, 2012, 09:38 AM
  5. Welcome box/widget in sidebar
    By sddude in forum Help Using ClassiPress
    Replies: 4
    Last Post: May 7th, 2010, 02:39 PM