WordPress.org

Ready to get started?Download WordPress

Forums

Why some of my hyperlinks (linking to internal pages) are not working? (11 posts)

  1. alexwrld
    Member
    Posted 2 years ago #

    I am stuck in a weird issue: Some of my hyperlinks(linking to internal pages) have stopped working all of a sudden. What makes me more surprised is when I'm looking into the 'view page source' and clicking on the same hyper links; they are working fine. Then why aren't they working on the landing page?

    I'll appreciate your help as the problem is beyond my head.

    Best,
    Alex

  2. ce_bradm
    Member
    Posted 2 years ago #

    Hi Alex. Can you supply us a link to the page with the issue, as well as what links we should be testing?

  3. alexwrld
    Member
    Posted 2 years ago #

    The site is not online.
    Please visit the following link and scroll down to the section in which you see three large images of Mohammed Ali, Deepak Chopra and Pure By Andrew Miller.

    I appreciate you sparing time for me.

    http://www.successstories.co.in/

  4. alexwrld
    Member
    Posted 2 years ago #

    These three sections are just below the front page slider. I hope you are there.

  5. ce_bradm
    Member
    Posted 2 years ago #

    So, here's how I'm currently debugging.

    The code by itself works:
    <a href="http://www.successstories.co.in/pure-by-andrew-miller/" rel="bookmark" title="Pure by Andrew Miller"><img src="http://www.successstories.co.in/wp-content/themes/Success/timthumb.php?src=wp-content/uploads/2011/06/Pure-by-Andrew-Miller.jpg&h=290&w=137&zc=1" width="290" height="180" alt="Pure by Andrew Miller" /></a>

    I'm under the impression that you have a javascript click function that is causing the issue, but at first glance through you ~10 javascript files, I couldn't find what I was looking for.

    What plugin / tool are you using to load those 3 images / links? It may help me find the necessary in your javascript (if my presumption is right)

    I'm 99% sure your javascript is causing the problem, because when I copied the source code and removed references to your javascript files, the issue was resolved.

  6. alexwrld
    Member
    Posted 2 years ago #

    I'm using the following code in functions.php to upload the images. Does this get you any clue?

    [Code moderated as per the Forum Rules. Please use the pastebin]

  7. alexwrld
    Member
    Posted 2 years ago #

    You are right. I just checked it by removing the JavaScript. Now my biggest concern is if I remove it, it might hamper some of the functions such as image sliders etc. Is there any other way I could fix this issue?

    Also, why the same JavaScript was working properly for weeks until today?

  8. alexwrld
    Member
    Posted 2 years ago #

    Oh! I just solved the issue :-)
    A million thanks and well wishes to you and your family.

    Regards,
    Alex

  9. ce_bradm
    Member
    Posted 2 years ago #

    Now my biggest concern is if I remove it, it might hamper some of the functions such as image sliders etc. Is there any other way I could fix this issue?

    Before removing all of the javascript code, I would hold off for a for minutes to see if we can resolve this one.

    Also, why the same JavaScript was working properly for weeks until today?

    Very good question! Without knowing the history / development of your site, changes to your server, etc, I cannot speculate.

    I was actually not looking for the php code, but instead which plugin is loading the images. The problem could be in any one of these files:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I just tested, and it is working now. Did you resolve it? Did you make any changes? You referenced that you removed Javascript. What javascript exactly did you remove?

  10. ce_bradm
    Member
    Posted 2 years ago #

    Looks like you posted 11 seconds before me with the update! Congrats, good job on fixing that!

  11. bjones
    Member
    Posted 2 years ago #

    so what was the fix??

Topic Closed

This topic has been closed to new replies.

About this Topic