I want to add both custom html that advanced text widgets can’t support and the standard sidebar widgets in the same sidebar. However, when I put a sidebar widget into the theme, it removes all the custom html and just displays the widgets in the sidebar. It shouldn’t be a tough fix, but I am pretty big php noob who learned wordpress by trial and error. I have attached the code from my sidebar:
<div class="sidebar-blog">
<div class="widget-wrap">
<div class="widget">
<h4>Title goes here</h4>
<p>Content goes here<p>
</div>
</div>
<div class="widget-wrap">
<div class="widget">
<h4>Title goes here</h4>
<p>Content goes here<p>
</div>
</div>
</div><!--end .sidebar-blog div-->
Thanks for any help
I suppose you are doing something like this:
If yes, do this instead:
You could also use a plugin – like http://www.mlynn.org/graceful-sidebar-plugin that I just wrote and plublished. The Graceful Sidebar Plugin creates a widget that enables you to use custom fields in a post or page that display in the sidebar. You can use it to display custom html or a simple message. The custom fields it uses are graceful_title and graceful_content.
That should do it: