Using CSS & javascript in wordpress
-
Hi
I’m in the precess of building my site (I think it’s a wordpress.com since I have a paid subscription with IONOS). I need to know how to swap out menus in wordpress (latest release) using css(& javascript if needed).
On my website you will see two small flags in the navigation menu – a UK one and a scottish one (the one with the blue cross). When you click on the scottish flag it takes you to the gaelic version of the pages which will (when I find out how) display the nav menu in gaelic. This would be easy to do if I have access to the underlying HTML/Css, but I don’t know how to do this in wordpress (I’ve just started using it to build my site.) So far I can get to the bit from the editor where I could add css but I don’t have enough information on the underlying html elements to do this – I’m completely blind in this respect.
Thanks for your help, ColinD
The page I need help with: [log in to see the link]
-
Your website is an individual installation hosted by IONOS. This has nothing to do with wordpress.COM. You only pay IONOS.
Your request is actually more that you want to have a multilingual website. WordPress itself is not (currently) multilingual. However, there are many plugins that make this possible. You can find examples here: https://ww.wp.xz.cn/plugins/tags/multilingual/ – there are also commercial plugins such as WPML and Weglot.
So you need a multilingual plugin for your request. This allows you not only to translate the menu but also to create all content in the different languages. Find a suitable plugin for you and test it out to see if your requirements can be met.
Editing HTML and CSS will not lead you to a solution here, as WordPress is used as a CMS where you edit data records – not the code. The theme you are using takes care of generating the code based on the data records.
The topic ‘Using CSS & javascript in wordpress’ is closed to new replies.