• I have a website where there are two Navigation bars. The top (primary) navigation and a custom menu side bar.

    When someone selects an item on the top primary navigation the item bolds which is good. When they select one of the “sub items” in the side navigation the primary navigation becomes normal (not bolded).

    Is there a way to keep the primary item bolded in the top navigation?

    I thought I was on the correct path by creating a new template and adding the following JavaScript to the navigation element ID but with no luck:
    <script type=”text/javascript”>
    document.getElementById(“parts_nav”).style.fontWeight = “bold”;
    </script>

    https://www.controlgraphicsusa.com
    Any ideas?
    Thanks
    Dan

Viewing 1 replies (of 1 total)
  • Thread Starter mac2025

    (@mac2025)

    Any ideas? I think if I create a template for all the pages I would like the primary Navigation to be bold this would work. I just don’t know what code to enter into the PHP file to make it work.

    I’ve tried

    <script type=”text/javascript”>
    document.getElementById(“parts_nav”).style.fontWeight = “bold”;
    </script>

    With no luck….

Viewing 1 replies (of 1 total)
  • The topic ‘Primary Navigation Bolding an Element’ is closed to new replies.