March 2, 2014 at 5:02 pm #93102
I'm having a hell of a time getting a particular conditional tag to work on my custom widgets. Everything is working fine but as soon as I insert a particular conditional tag the theme breaks.
I've already posted about the issue I am having and it is the Magazine Pro theme I am using.
If anyone can help I'll be very grateful plus you'll be helping someone else who is having a similar problemhttp://www.websitebabble.com/showthread.php?t=32895March 3, 2014 at 8:00 am #93192
March 3, 2014 at 8:05 am #93193
This is the correct way to add new widgets in child themes running HTML 5 markup http://wpsites.net/web-design/adding-new-widget-areas-in-studiopress-themes/
March 3, 2014 at 8:55 am #93203
Not yet approved for some reason.
March 3, 2014 at 9:13 am #93204
March 3, 2014 at 10:29 am #93223
Brad, you're star! Thanks for your reply and I'm looking forward to exactly what your fix is.
I've looked at the wpsites article you referenced and the key difference appears to be using 'before' and 'after'
My original code...
echo '<div class="banners-top widget-area">'; dynamic_sidebar( 'banners_2' ); echo '</div>';
Suggested changes I need to make...
'before' => '<div class="banners-top widget-area">', 'after' => '</div>',
You must be logged in to reply to this topic.