Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42338
    Belinda
    Guest

    I love the Crio theme, but just had a request that we change the website from multiple pages to one page. I don’t want to start over with a new theme and would like to modify the Crio theme to function as a one-page website. I am able to modify the menu navigation to link to the sections on the page, but the issue is that all menu items are not highlighted as active. Is there a way to modify the theme either through css or jquery to get the active links to highlight when on the corresponding section?

    #42354
    Jesse Owens
    Keymaster

    Hi Belinda-

    Thanks for the interesting question! You could probably accomplish this in the Crio Theme with some fancy jQuery, but I think there’s an easier way.

    The free plugin Page Scroll to ID does most of the heavy lifting you need to accomplish this, and adds some good bonus features too.

    It will:

    1. Automatically add a “clicked” class to anchor links in the menu that were clicked
    2. Automatically add a “highlight” class to anchor links in the menu as you scroll around the page
    3. Allow you to specify an offset so that you can fine-tune the top of the page for anchors
    4. Give you a few more fine-tuning options, like different scroll animations

    Then, all you’ll need to do is add CSS for the plugin’s two classes (.mPS2id-highlight and .mPS2id-clicked) to match your preferred active link style.

    The specific CSS for that is going to depend on which variation of Crio you’re using, so if you’d like assistance with that just let us know your site’s URL and we can take a look for you.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How do I modify Crio to a one-page site and highlight active links?’ is closed to new replies.