How can I create a dynamic sidebar by just using the functions.php, and by not creating an additional sidebar.php
Possible?
How can I create a dynamic sidebar by just using the functions.php, and by not creating an additional sidebar.php
Possible?
.. very challenging ;-)
You could add a sidebar using add_action(), as long as the 'position' fits one of the official WP hooks.
A different approach could be using jQuery. I played with it a while ago trying to find a non destructive way to add something to a themes markup. Looks like this ..
//add rounded corner divs for .entry-meta
jQuery(document).ready(function(){
jQuery('body').find('div.entry-meta')
.wrap('<div class="roundedcornr_box"></div>').before('<div class="roundedcornr_top"><div></div></div>').append('<div class="roundedcornr_bottom"><div></div></div>');
});
Could you please give me some more details?!
Cheers,
Chris
You must log in to post.