Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1308918

    Hi there,
    I have an issue with column links not working when anchor links are used.
    I am wanting the Latest News column (https://prnt.sc/18zbq71) to link to https://shapingourfuture.org.nz/action/#latest-news
    These column links are not working on the Home page only. I duplicated the HOME page (https://shapingourfuture.org.nz/shaping-our-future-new/ ) and they now on this page.
    Any idea why they will not work on the designated HOME page?
    Many thanks!!

    #1309015

    Hey Suze,

    Thanks for the login details. First off, could you try updating the theme to the latest version (4.8.3) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update.

    Best regards,
    Rikard

    #1309019

    Hello Rikard,
    I’ve updated the theme to 4.8.3 and the column link unfortunately still does not work. Any further suggestions?
    Many thanks!!

    #1309297

    The customer has asked for a workaround as they want to go live, so I’ve created a Staging site to continue testing.
    The new URL is shown in Private Content.

    #1309498

    Hi,
    Thank you for your patience and for the login to your staging site, the column link didn’t work because it included a hashtag and it was on the homepage, the column links are not real links, they are faked with javascript, I found that by modifying the /js/shortcodes.js file I could create a workaround for you.
    I modified line 660 from this: if( (0 == url.indexOf("#")) || ((url.indexOf(link) >= 0) && (url.indexOf("#") > 0) ) )
    2021-05-29_144545.jpg
    to this: if( (0 == url.indexOf("#")) )
    2021-05-29_145341.jpg
    and this seems to work correctly now, please clear your browser cache and check.

    Best regards,
    Mike

    #1309708

    Hi Mike – that worked a treat! Thank you!!
    As this change has been made to the Enfold shortcode.js file, can I assume that I will need to update this code each time a Theme update is made – is that correct?
    Many thanks!!

    #1309732

    Hi,
    Glad to hear this helped, if you are using a child theme you can follow these steps to load modified shortcode.js from child theme, so you won’t lose the modification with each update.
    Please let us know when you successfully make this change and we will close this thread.

    Best regards,
    Mike

    #1309869

    Hi Mike,
    I’ve successfully made those changes to the child theme, so you can now close this thread.
    Thank you so much for your help – Enfold Support is the best!!

    #1309912

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Column anchor links not working on home page only’ is closed to new replies.