Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19896

    When I insert my shortcode [ime]content here[/ime] into Top Banner Message field (Theme Options), the content of this shortcode is not displayed correctly. It simply outputs the exact text “[ime]content here[/ime]”. This shortcode works fine in Posts/Pages.

    Any hits what code I need to add and into which file?

    Thank you for your kind support and I look forward to reply your reply,

    K

    PS: Kriesi themes absolutely rox! :)

    #105441

    Hi,

    Please open up functions.php at the base of the theme and change line 342 which looks like

    $output .= "<div class='infotext'>$bannerText <a class='close_info_text rounded' href='#close'>".__('close','avia_framework')."</a></div>";

    to look like

    $output .= "<div class='infotext'>".do_shortcode($bannerText)." <a class='close_info_text rounded' href='#close'>".__('close','avia_framework')."</a></div>";

    Thanks,

    Nick

    #105442

    Hi Nick. It works. Thank you very much. I’ve implemented your solution 2 days ago, but I wanted to come back to THANK YOU.

    #105443

    Hi,

    Appreciate it. Glad it works. We are always here if you need anything else.

    Thanks,

    Nick

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

The topic ‘Shortcode not working in Top Banner Message. Any hits what/where to fix?’ is closed to new replies.