Home › Forums › WordPress Themes – Premium › Celestial (Celestial Reloaded) › Transposh in main menu possible?
- This topic has 5 replies, 14 voices, and was last updated 9 years ago by
Sushil Adhikari.
-
AuthorPosts
-
August 29, 2014 at 12:38 pm #15454
Andrei Alexa
ParticipantI want to add transposh short code into my primary menu ( I simply want the visitors to be able to choose english or swedish as language for my site)
[tp widget="flags/tpw_flags_css.php"]
this code generates 2 flags and translates the website to desired language. The Transposh plugin works great with celestial reloaded but the problem is that I can’t seem to place the flags on the top right of my website without getting the label text for the menu.
As for now the solution is to use the plugin with widget placed in “Bottom Inset”, are there any tweaks I could do to insert a widget just to the right of the primary menu?
our homepage: http://www.laj.se
Any help would be greatly appreciated! 😉
August 29, 2014 at 8:38 pm #20412Sushil Adhikari
ModeratorGood morning!
I’m not sure how much I will be able to help you here as this is more custom related as well about a third party plugin I am not familiar with. However, if I understand you correctly, you want your flags to be a menu item but without a label showing? What happens if you put a blank space and then your shortcode in? The other option is perhaps use their code to put it in where the social icon bar is…although this means using a child theme to modify the header.php file.September 1, 2014 at 9:36 am #20414Andrei Alexa
ParticipantI’ve already tried that, but wp writes out these characters to the left of the flags: “>
Not a nice solution, would be ok if I could change the “> to the bg color but it’s not possible.
The short code also interfeers with the background color and changes it to black. Perhaps the solution I’ve got now is the best? (placing the flags at the bottom left corner on the website).
September 1, 2014 at 8:50 pm #20415Sushil Adhikari
ModeratorThe only other option I can think of then is that you would need to use the child theme (so you can keep getting theme updates and not lose your changes) and modify the header.php and place the plugin’s code next to the social networking container. Or, you can add it to the footer.php file at the bottom. You might also want to look at alternative language plugins that might give you a floating box off to the side. Unfortunately what you want to do is something that requires some HTML experience when customization is needed because you are wanting your flags to be in a specific location.
September 2, 2014 at 9:30 am #20421Andrei Alexa
ParticipantHow exact should I place the shortcode to put it next to the social icon (Facebook) ?
[tp widget="flags/tpw_flags_css.php"]
I have a child theme setup on my site.
September 2, 2014 at 8:28 pm #15455Sushil Adhikari
ModeratorYou will need to copy the header.php file into the child theme and then where the social coding begins, add the code the plugin documentation states:
You will need to put this somewhere within this location of the header.php
….either at the beginning or just before the closing tag. You might have to put that code in a span container or something that will allow you to style it or position it using CSS. The rest will basically be up to you. Ultimately you can use that plugin code (above) to put it almost anywhere in a theme’s template file.
If you need more help or documentation for this plugin, it’s best to contact their support. Their documentation can be found here:
-
AuthorPosts
- You must be logged in to reply to this topic.