• Resolved itsmir

    (@itsmir)


    Is it possible to replace the site description with short code?

    I tried adding add_filter( 'site-description', 'do_shortcode' ); to functions.php and then changing the site description in Settings to the shortcode but no luck.

    Thanks!

    site : christineleedy.nl
    Theme : Twenty10

Viewing 4 replies - 1 through 4 (of 4 total)
  • What is the end result you are trying to achieve? What is the purpose of the shortcode? You may not be able to do it with shortcode but you may be able to do it with php code.

    Thread Starter itsmir

    (@itsmir)

    The short code is : [widgets_on_pages id=”flags”] which I’ve realised won’t work as it’s to put widget in page not anywhere else … so I guess my question should be:

    Can I replace site-description with a widget?
    The widget is the q-translate language chooser which gives a drop down box to change language.

    Sorry for the confusion – as you can tell, I’m new to this wordpress wonderfulness 🙂

    Thread Starter itsmir

    (@itsmir)

    Fixed it!

    Replaced the php call for site_description in header.php with <?php echo qtrans_generateLanguageSelectCode('both'); ?>

    🙂

    Great. You should mark it Resolved so other people can learn from it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Replace site description with short code’ is closed to new replies.