WordPress.org

Ready to get started?Download WordPress

Forums

HungryFEED
NoFollow Links (10 posts)

  1. shomettec
    Member
    Posted 1 year ago #

    I’m surprised nobody has asked you this yet. How can I rel=”nofollow” all external links that your plugin generates?

    What I'd really like to see is an option to tick a check box to choose this option but a manual fix is OK.

    Cliff

    http://wordpress.org/extend/plugins/hungryfeed/

  2. Price.K
    Member
    Posted 1 year ago #

    Great plugin but its very easy to get pandalized because of using it. An option to make links nofollow would make it safe in the eyes of Google.

  3. mikeotgaar
    Member
    Posted 1 year ago #

    Good idea!
    Try this: Look for the following code in hungryfeed/hungryfeed.php (latest Hungryfeed version 1.6.3 - line 414 in my PHP editor (Dreamweaver) - may be different in other editors.)

    ? '<div class="hungryfeed_item_title"><a href="' . $item->get_permalink() . '" '. $target_code .'>' . $title . "</a></div>\n"

    Add rel="nofollow" after <a and before href

    The result should look like this

    ? '<div class="hungryfeed_item_title"><a rel="nofollow" href="' . $item->get_permalink() . '" '. $target_code . '>' . $title . "</a></div>\n"

    Works for me...

    Here's a sample of the generated result:
    div class="hungryfeed_item_title"><a rel="nofollow" href="http://*******">Windows 8 Recovery Disk</a>

  4. Jason
    Member
    Plugin Author

    Posted 1 year ago #

    That's a good idea for a built-in option. Something you could do right away without editing the plugin code would be to use the custom template feature like so:

    [hungryfeed url="http://your.feed.url" template="1"]

    Then if you go to the hungryfeed settings page - you'll see there are 3 templates that you can customize. It's basically just simple HTML and you can put in the nofollow tag there.

  5. mikeotgaar
    Member
    Posted 1 year ago #

    @Jason
    Very good tip Jason!!!

  6. Peter Stolwijk
    Member
    Posted 11 months ago #

    Why isn't this option build in the file?

    I have little knowledge of coding, Can someone please tell me where i need to insert this line ?

  7. mikeotgaar
    Member
    Posted 11 months ago #

    Go to Hangryfeed settings from your WordPress Dashboard
    Scroll down to find the CUSTOM TEMPLATES
    Let's say you want to use Custom Template 1
    Look for this line: (Line 2)

    <h3><a href="{{permalink}}">{{title}}</a></h3>

    Replace the entire line with this:

    <h3><a rel="nofollow" href="{{permalink}}">{{title}}</a></h3>

    This is a better way as recommended by Jason than the method I originally posted - you won't need to modify the plugin files each time there's an update.

  8. Peter Stolwijk
    Member
    Posted 11 months ago #

    Like i said before, i don't have any knowledge about coding or customs.

    So what refers a custom to?
    I have 3 customs.

    Custom 2 and 3 have the exact same code. See as below:

    <div class="hungryfeed_item">
    <h3><a href="{{permalink}}">{{title}}</a></h3>
    <div>{{description}}</div>
    <div>Author: {{author}}</div>
    <div>Posted: {{post_date}}</div>
    </div>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    I understand what line should be replaced.

    But please tell me very clear, what this exactly does, when i replace this line, concerning Google.

    And i see i have 2 customs, with the same content. Can i delete one custom?

    Thanks!

  9. mikeotgaar
    Member
    Posted 11 months ago #

    GOOGLE
    When you add the rel="nofollow" to outgoing links, it tells Google not to follow the link to the article.
    What this does - rel="nofollow" prevents the links from embedded RSS feeds passing Page Rank away from your post, to the pages the feed links to.
    WordPress does this with links added to comments and trackbacks.
    You'd normally want to keep as much Page Rank for your article as possible - if you use the feed in a sitewide widget - then every page loses rank unless the links are nofollowed.
    With Google becoming more and more sticky about spammy backlinks, it's good for both your site, and the site sending the RSS feed, to nofollow the links

    There's lots of information about Google and links on the web. Try Googling " Matt Cutts rel=nofollow " and Matt Cutts backlinks just for starters. (Matt Cutts is on the Google Spam team, and the most reliable source of information - from the horses mouth)

    TEMPLATES
    You can delete the content of the template if you want to - unless you are using that template.
    But why bother - unless the template is actually used in a post somewhere - it's only there in the admin settings.

    You can remove any of the lines except the opening and closing <div> to modify for a different feed content.

    Hope this helps

  10. sailpilot
    Member
    Posted 6 months ago #

    Can the templates be used to add a nofollow to links embedded in the description field? If yes how would this be done?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.