July 6, 2021 at 11:33 am #1308918
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!!July 7, 2021 at 5:29 am #1309015
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.
RikardJuly 7, 2021 at 5:52 am #1309019
I’ve updated the theme to 4.8.3 and the column link unfortunately still does not work. Any further suggestions?
Many thanks!!July 8, 2021 at 9:13 pm #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.July 10, 2021 at 6:01 pm #1309498
I modified line 660 from this:
if( (0 == url.indexOf("#")) || ((url.indexOf(link) >= 0) && (url.indexOf("#") > 0) ) )
if( (0 == url.indexOf("#")) )
and this seems to work correctly now, please clear your browser cache and check.
MikeJuly 12, 2021 at 10:39 am #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!!July 12, 2021 at 11:41 am #1309732
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.
MikeJuly 13, 2021 at 2:55 am #1309869
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!!July 13, 2021 at 11:04 am #1309912
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.
- The topic ‘Column anchor links not working on home page only’ is closed to new replies.