Adding a widget function

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3583 Reply
    Kriss Harmsworth
    Guest

    Hi ya

    Just found out from one of the my plugin authors than you can add shortcodes to your widgets IF you add this piece of code to the functions.php

    add_filter(‘widget_text’, ‘do_shortcode’);

    Is there anyway you can put that into the functions.php so that when we update we don’t have to go in and paste it every time?

    It is so small and so damn handy as a lot of plugins these days come with shortcodes and it means you can then use them in your text widget… 😀

    Kriss 🙂

    #3584
    Ron
    Keymaster

    My other older theme (Asteroid) has this snippet included on the functions.php. I’ll add it to Frontier on a future update, maybe version 1.0.9
    Frontier 1.0.8 was already submitted and is just waiting to go live.

    Note: version 1.0.7, the one you’re using right now, adds an additional 10px to the entire width. Consequently, your logo does not span the entire header anymore. You may want to subtract 10 from the “Content Width” value on the Options to get it back to normal.

    Thanks,
    Ron

    #3585
    Kriss Harmsworth
    Guest

    Ooops didn’t even notice…thanks for that… 😀

    And thank you!

    Btw having a lot of fun with shortcodes! NOT! driving me batty… doing things that the author says and nothing happening…ahh well have left it with him so hopefully it works as the the plugin is brilliant!

    Kriss 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Adding a widget function
Your information: