Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialdariorancatore
6,845 PointsDelete blog widgets on template
Hi all, I've installed the "art page" template on my domain using the "Restaurateur" template using filezilla. Now i found the problem that if i do a new page and use the "art template" the blog widgets are still there and shown in the bottom, after the footer. What can i do to delete them? Thanks in advance
2 Answers
Rich Bagley
25,869 PointsHi,
The quickest way (if you don't use the blog widget section at all) would be to remove these via Appearance > Widgets > Drag them out of the 'Blog' section.
If that isn't an option, towards the bottom of the file will be the following:
<?php get_sidebar(); ?>
If you don't want this to show on any pages using the art template you can simply remove this line. This loads sidebar.php which contains something similar to this:
<?php if( !dynamic_sidebar( 'blog' ) ): ?>
<h2 class="module-heading">Sidebar Setup</h2>
<p>Please add widgets via the admin area!</p>
<?php endif; ?>
If you want the widgets to show on one page and not the other you will have to create a new template or sidebar widget section for this.
Hope that helps in some way.
-Rich
dariorancatore
6,845 PointsMission complete, thank you Rich :)
Rich Bagley
25,869 PointsNo problem, glad I could help :)
-Rich