Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Theme: Resposive

I have added "Widget Context" and has set it to show a widget only on the start side. This works perfectly BUT on all other sides there shows a default widget "Home Widget 1" with a default text.How do I remove the default widget? /Torbjorn

share|improve this question
    
What is "Theme: Resposive"? Is this a typo or is it the theme name? Please also always add all info + all links. –  kaiser Dec 12 '12 at 12:36
    
Sorry: Responsive Theme –  Torbjorn Dec 12 '12 at 12:43
2  
And what about the links? Please click the "edit" button on your question, add additional information, links, etc. Then make "progress" on your question with commenting, editing, etc. Make also sure to read through the faq how things work over here. Thanks. –  kaiser Dec 12 '12 at 12:57

1 Answer 1

You have to change the sidebar.php. In there, the default Sidebar main-sidebar is called.

If no Widgets are registered in this Sidebar, the fallback function shows a monthly Archive.

You have got two possibilities:

  • Register a Widget for the Main Sidebar
  • Remove the Fallback Function from sidebar.php. In this case, it would look like this:

    <div id="widgets" class="grid col-300 fit">
    <?php responsive_widgets(); // above widgets hook ?>
    
        <?php dynamic_sidebar('main-sidebar'); ?>
    
    <?php responsive_widgets_end(); // after widgets hook ?>
    </div><!-- end of #widgets -->
    

Please keep in mind that this theme has a lot of different Sidebars - so you may have to change all of them, or register the correct Widgets for each Sidebar.

share|improve this answer
    
When I remove all about "Home Widget 1 !" it disappears totally but I want it to appear only on the start page. I have in "Widget Context" checked it to only show on the start page but then the default home-widget-1 appears on alpa other pages. –  Torbjorn Dec 12 '12 at 14:10
    
Here is the code: –  Torbjorn Dec 12 '12 at 14:11
    
Is there anyway I could configure widgets for one page at the time? –  Torbjorn Dec 12 '12 at 15:28
    
You can add meta fields to your pages, defining which sidebar you are using there, and making a switch in the template. If you want a different Sidebar on the home.php you have to specify it there. –  fischi Dec 12 '12 at 16:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.