Execute Shortcode In Header Code Snippet
-
Hi, hope someone can help me with this. I’m using Code Snippets to create a menu in the header above the defacto main menu with some miscellaneous links for a client. One of those links is to use the Google Translate plugin (shortcode: [gTranslate]) to translate the site back and forth between Spanish and English.
I’ve got the new topline menu created and i am trying to figure out how to incorporate the shortcode into the HTML. It appears that i cannot embed php tags in the Global Header and Footer sections? I get errors when i try that. Obviously, i can create PHP snippets but i can’t seem to embed PHP into the Global Header snippet.
This is roughly what i am trying to do:
<li class="translate-page"><a class="topline-menu-a" href="NOT SURE WHAT GOES HERE, [gTranslate] won't work" role="menuitem"></a><a id="aSpanish" onclick="changeLanguage()" style="cursor: pointer;">
Can anyone help me out with this? THANK YOU!
- The topic ‘Execute Shortcode In Header Code Snippet’ is closed to new replies.