Href goes to wrong page

Hey,

I’m using X Theme and the href goes to the wrong page. every other link works the right way except for one. It takes it to a completely different page.

Thanks

Hi there,

Would you please kindly give us the exact URL of the page that you are experiencing the problem with? Also, I wonder if you have a child theme or added some JS code in ** X > Launch > Options > JS** if so please kindly remove them and test the case.

And at last kindly check for third part plugins incompatibility by deactivating them and testing the case.

If you still have problems kindly get back to us with the URL/User/Pass of your Wordpress Dashboard to follow up.

Thank you.

Hi, I have addressed your questions below:
URL:
http://www.ksmc.morelly.com.au

The issue presents on the Disability Care link under services
(Note: we have two sections that display this content:

  1. Section for desktop with animations; and
  2. Section for mobile and tablet without animations - The issue does not present on the mobile section)

Child Theme:
Yes we have a child theme installed

JS CODE:
we have no global js, or custom js on any page. We do however have some js in a raw content element on a different page, though we can’t get rid of that because it is our clients online booking portal. I can confirm however that the issue presented itself before we added that code.

3RD PARTY PLUGINS:
We have no 3rd party plugins currently installed

Hi there,

I tried checking the Disability Care link in desktop and it seems to be working fine.

It links to this section of the page:

Please try to clear your browser cache and load the page again.

Thank you.

I have done that across 2 different devices, in 2 different locations, with 2 different users. We have both cleared our cache and replicated the a problem still. We have also not replicated the problem in incognito mode in chrome. Iwould be very surprised if it was just a cache issue considering clearijg the cache didn’t fix our problem. I hope you’re right though! I will try again when I get into the office this morning and send you an update here.

Thanks.

Hi,

I have cleared the cache and the issue is still happening. To clarify, it doesn’t happen on the menu item. It happens if you visit the homepage, manually scroll down to the services section, then click the words ‘Disability Care’ above the words is a disability vector image. When I inspect the element in chrome is shows the href in the html as pointing to /doctors/#john. When I inspect the php in the backend it shows the href as correctly pointing to /services/#disability.

It seems very strange. Can you please try again and advise?

Thanks

Additionally, I have tested it on Microsoft Edge and get the same result

Hi @Jade and @christopher.amirian,

We have further tested on another device and can replicate the problem. We have reviewed the code within the page, and inspected the element and they both show the correct href, yet it still defaults to /doctors/#john

Please see below for screen shots (note the system limits me to one upload per post so I have split it across two posts):

We can’t figure it out?

Have you tried clearing the cache of your site? If you have a WordPress plugin that caches your site, clear the cache. If your web host caches your site for you (like WP Engine) clear the cache through your host.

If you have both, there’s really no need to have both so eliminate one method and then clear the cache for your website. Based on your posts, it sounds likely that may be what is happening.

Hi There,

After investigating this mystery for quite some time, I’ve found out that this column (https://prnt.sc/ft29xp) is the culprit. You are offsetting it too far (2000px) that it actually covers the Disability Care column, we are just not seeing it because its opacity is set to 0, but if we increase its opacity a little bit we can actually see it cover the Disability Care link (https://prnt.sc/ft2bn6).

Please decrease that column offset value.

Cheers :slight_smile:

Thank you so much. I never would have figured that out! I really appreciate you persevering. We will make the necessary changes. Thanks again.

We are gratified that we’re able to help you with this,

Cheers :grinning:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.