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 from Main menu become active on current page.

Discussion in 'Free Divi Community Forum' started by kotkota, Aug 19, 2019.

  1. kotkota

    kotkota Member

    Hello.

    I need menu item link was like anchor to section on homepage. Problem is:

    If anchor looks like "#aboutus" it is working only on the current page, where i have section ID "aboutus". if i'll push to this anchor from another page there is nothing happends.
    If anchors looks like "https://website.com/#aboutus" (or "/#aboutus") it is working good. I can push on it from any page and it will bring to desired sectiond place on homepage.

    BUT! If anchor have long link this button is always look like active on Primary Menu bar if i stay on this page. How to turn off this?
    Screenshot shows than menu button "About" is always active on this currently page (this is gome page).
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom header designs for you to choose from:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try to set this option & see if it works: Divi > Theme Options > Navigation > General Settings > Alternative scroll-to-anchor method

    As for the active issue, kindly share your URL.
     
  3. kotkota

    kotkota Member

    Have turn on rhis option, but nothing. Anchor still active.
    URL pass: Master1
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Replace the default archive "Older Entries" with beautiful pagination:Learn More
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Try this CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
    kotkota likes this.
  5. kotkota

    kotkota Member

    It helped! Thanks!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade testimonial carousel design for your Divi site without using any plugins:View Demo
  6. kotkota

    kotkota Member

    Have problem. This button with this code dissapearing on Firefox and Chrome. I can see it only on Opera.
     
  7. Divi.Help

    Divi.Help Administrator
    Staff Member

    It's because you set the active link color to be white. It's in Theme Customizer > Header & Navigation > Primary Menu Bar > Active Link Color.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade dynamic background hover design for your Divi site without using any plugins:View Demo
  8. kotkota

    kotkota Member

    You exactly right! thnx
     
  9. hannah wojno

    hannah wojno New Member

    I have the same exact issue. I added the code above, nothing happened and the menu items still appear as active. https://www.smoothtalkerint.com/ can you help?
     
    1. PRO MEMBER PERKS Divi Block Pro - Easy-to-use drag & drop interface to mix & match 456+ premade Divi blocks & export as json file:Learn More
  10. Divi.Help

    Divi.Help Administrator
    Staff Member

    Your site looks fine to me. Perhaps you already resolved it.
     
  11. Raúl Medialdea

    Raúl Medialdea New Member

    Same issue here, I can't go to the anchored section from other pages. I also don't have the "Alternative scroll-to-anchor method" option in my Divi Theme options, as you can see in the image.
    http://www.alvinatur.es/
    Thanks.
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom header designs for you to choose from:View Demo
  12. Divi.Help

    Divi.Help Administrator
    Staff Member

    I think Divi already removed that option.

    Couldn't view your site. But I would guess that it's a jQuery error.

    Thus you may try to enable Safe Mode & see if it works: WP Admin > Divi > Support Center > Safe Mode > Enabled

    If it works in Safe Mode, one of the below is the culprit:
    1. Plugins
    2. Child Theme
    3. Custom code in WP Admin > Divi > Theme Options > Integration
     
  13. Raúl Medialdea

    Raúl Medialdea New Member

    I tried Safe Mode and still doesn't work. Any other suggestion?
    Thanks.
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Agency Divi layout pack featuring unique comment design on single blog post page:View Demo
  14. Divi.Help

    Divi.Help Administrator
    Staff Member

    For that case, I would suggest you to refer official Divi support about it: https://www.elegantthemes.com/members-area/help/

    But before that, you may want to make sure that you updated Divi & Wordpress to the latest version & clear your cache.