Jump to content
Sign in to follow this  
israelgenealogy

Dynamic Menus

Recommended Posts

israelgenealogy

I'm looking for a way to put a link in the menu that changes based on the page. In theory it doesn't need to be in the menu itself, but I'd like it to show up between the menu and the search field. The link is for a flag icon to translate the page. I can insert a link to the translation of the home page and insert the flag using CSS, but that isn't dynamic. Is there some way to insert a short-code or php code into the space between the menu and the search field, or into a menu item itself? The site I'm working on is: http://genealogy.org.il/ and it's very important to prominently offer the site in different languages,as our users speak many languages. The plugin I'm using (transposh.org) just inserts the two-letter code for each language after the domain, so the page: http://genealogy.org.il/contact/ in French becomes: http://genealogy.org.il/fr/contact/ In any case, I'm having trouble figuring out how to insert dynamic code into a menu, or to the right of the menus. Any help figuring out how to do this would be appreciated.

Share this post


Link to post
Share on other sites
Danny
Hi, I think the best thing to do, would be to download the Action Map plug-in from the PageLines store, within your Wordpress installation i.e. Wordpress Admin Dashboard > PageLines > Store > Plug-in > Then once the plug-in is installed and enabled, go to your front end, refresh the page and in the admin bar, in the top tight you should see ActionMap Off, click this and it will show you all the hook locations. Use this to determine the location you want and then create a function in your themes function.php using the hook location.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×