-
AuthorPosts
-
July 6, 2021 at 11:33 am #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!!July 7, 2021 at 5:29 am #1309015Hey 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,
RikardJuly 7, 2021 at 5:52 am #1309019Hello Rikard,
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 #1309297The 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 #1309498Hi,
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) ) )
to this:if( (0 == url.indexOf("#")) )
and this seems to work correctly now, please clear your browser cache and check.Best regards,
MikeJuly 12, 2021 at 10:39 am #1309708Hi 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 #1309732Hi,
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,
MikeJuly 13, 2021 at 2:55 am #1309869Hi 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!!July 13, 2021 at 11:04 am #1309912Hi,
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 -
AuthorPosts
- The topic ‘Column anchor links not working on home page only’ is closed to new replies.