How can I make all JavaScript-generated links on my website dofollow?

This topic has 3 replies, 2 voices, and was last updated 28 minutes ago ago by Andrew Mitchell

  • Avatar: Anurag
    Anurag
    Participant
    February 6, 2025 at 16:45

    I have several links on my website that are generated using JavaScript, but they are not being recognized as dofollow by search engines. I want to ensure that all these JavaScript-generated links pass SEO value and are treated as dofollow. What are the best practices or techniques to achieve this? Any guidance would be appreciated!

    Files is visible for topic creator and
    support staff only.
    2 Answers
    Avatar: Anurag
    Anurag
    Participant
    February 6, 2025 at 19:55

    ??

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 7, 2025 at 11:42

    Hello, Anurag,

    Unfortunately, there is no standard solution for this issue, as such links may be generated by different plugins.

    To begin with, you need to identify which specific scripts are generating these links. Once identified, you can modify the scripts accordingly, for example:

    $('', {  
        href: 'https://example.com',  
        text: 'Visit Example',  
        rel: 'dofollow'
    }).appendTo('body'); 

    However, please note that plugins and WordPress itself may contain minified libraries that generate such links. Modifying these libraries is not advisable, as any changes will be lost after an update.

    Additionally, we would like to highlight that troubleshooting and fixing such issues fall outside the scope of our support services.

    Best regards,
    8Theme Team

  • Viewing 3 results - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.