adding Nofollow to event links

Home Forums Calendar Products Events Calendar PRO adding Nofollow to event links

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #852223
    Rex Graham
    Participant

    In an earlier discussion Casey suggesed a way to add nofollow code to outgoing event links by pasting the following code snippet into your theme’s functions.php file: https://gist.github.com/ckpicker/82834e4bc8e77434a346

    I added that snippet as suggested. In page info, the outgoing links don’t have the rel=”nofollow” piece. Is it added only when creating new events, or does this fix all the existing links in Events Calendar Pro?

    #852393
    Brian
    Member

    Hi,

    I can help you out with this.

    The snippet should work on all events. It is not saving anything to the database which would require changes to old events.

    Where did you place the snippet? Can you try placing it in your functions.php if not there?

    Let me know and we can go from there.

    Thanks

    #852466
    Rex Graham
    Participant

    Hi Brian,

    Thanks for replying. Much appreciated. I pasted the snippet at the very bottom of the functions.php file. I did as you suggested; updated one event as a test, and low-and-behold, the nofollow code has been added to the href address. When I look farther down the page info there are what looks like other outgoing links for which the nofollow text is not added. These links have this text: target=”self”

    Are the target=”self” links NOT outgoing, therefore not to be concerned about?
    Thanks again,
    Rex

    #852693
    Brian
    Member

    Hi.

    So target=”self” is more for feed validation as the RSS Advisory Board recommends them.

    http://feedvalidator.org/docs/warning/MissingAtomSelfLink.html

    The snippet you are using only targets one specific link it does not target them all.

    It is really up to you if you would like to add nofollow to links there are pros and cons to adding or not adding it to links, but that really depends on how you want everything setup.

    Does that help?

    #912913
    Brian
    Member

    Since I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘adding Nofollow to event links’ is closed to new replies.