1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Anchor Links & Child Menus

Discussion in 'Basic Support Forum' started by webward3, Apr 27, 2020.

  1. webward3

    webward3 Member
    Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Hi - I'm using a one page site with anchor links for the main menu. I need the main menu anchor links to behave like as if they were actual links, i.e. use the active link property so that if some click the menu link it will change to the active link color. Right now only the Home button is using the active link property: https://pettygigs.wpmudev.host/

    For my other site, I need to use the active link property when children menus are selected. Currently, only menus without child menus are using the active link property: https://atdmf.wpmudev.host/
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Custom Divi Builder header on desktop + default slide in / fullscreen menu on mobile:Learn More
  2. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    That would require custom coding. Here's a tutorial on that: https://divisoup.com/how-to-highlight-active-links-on-scroll-and-click-for-one-page-divi-websites/
    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
  3. webward3

    webward3 Member
    Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Thanks for the help. Child menu issue resolved. For the anchor links, I followed the instructions closely but now getting a jQuery error in my page header. Is there something interfering with js in the theme?
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - Premade content toggle design for your Divi site without using any plugins:View Demo
  4. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    You will need to wrap their jQuery code with:

    <script>

    </script>
     
  5. webward3

    webward3 Member
    Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Thanks! Error gone. My active menu is not working :).
     
    1. PRO MEMBER PERKS Custom Color Scheme + Premade Layouts - A perfect combination to boost productivity:Try Now
  6. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Couldn't see the jQuery code on your site. Might be cache issue. Try to clear your cache plugin & see how it goes.
     
  7. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Try to replace the jQuery code with the below:
    Code:
    Log In or Sign Up to view this code.
     
    1. PRO MEMBER PERKS Divi Mini Cart Pro Plugin - Instantly add 3 different types of mini cart to your Divi site:Learn More
  8. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    And you will need the below CSS in Divi > Theme Options > Custom CSS to change the active link color:
    Code:
    Log In or Sign Up to view this code.
     
  9. webward3

    webward3 Member
    Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Thanks for your patience. I replaced the code and clear cache. No luck.
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Tons of elegant premade sidebar styles to choose from for your Divi site:Learn More
  10. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    As stated in previous post, you will need to add the below CSS in Divi > Theme Options > Custom CSS to change the active link color:
    Code:
    Log In or Sign Up to view this code.
     
  11. webward3

    webward3 Member
    Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    I must have missed that part. Works like a charm! Thanks a million!
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More