ThemeShaper Forums » Thematic

Dynamic sidebar usings functions.php

(2 posts)
  • Started 5 years ago by gelay
  • Latest reply from Chris
  • This topic is not resolved
  1. How can I create a dynamic sidebar by just using the functions.php, and by not creating an additional sidebar.php

    Possible?

    Posted 5 years ago #
  2. .. 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

    Posted 5 years ago #

RSS feed for this topic

Reply

You must log in to post.