• Hello, I am using the Sugar & Spice theme.

    At the bottom of my homepage I have links to pages, sitemap, affiliate agreement, privacy policy, medical disclaimer etc.

    On all posts I have a YARRP ‘related content’ widget. Until now, this did not show up on my home page, or if it did, it stated ‘no related posts’. For some reason now it is coming up with ‘1.affiliate agreement’ under related posts on the homepage which doesn’t look good at all!

    Can somebody please help me get rid of it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi MCH,

    Can you provide a link to your site, please?

    Thread Starter MCHLondon

    (@mchlondon)

    Hi sure it’s http://www.healthyskincarejournal.com

    – thanks

    Thank you kindly! You have a nice site.

    I’m going to assume that you’d like to have the home page just not show the YARPP. (I sound like a pirate when I say that out loud ha ha YAAARRRRPPPP matey!)

    YARPP allows you to hide it based on categories, but we can’t assign a category to your home page.

    A little bit of styling will accomplish this for you. You will need to edit one of your stylesheets.

    In your WP admin area, go to your plugins page. Within the YARPP plugin listing, click on “Edit” beneath the plugin title. This gets you access to modify files related to the plugin. You should see Editing yet-another-related-posts-plugin/yarpp.php under Edit Plugins. Do not edit this one. 😛

    There is a (long) list of files on the right. Near the bottom is one called yet-another-related-posts-plugin/style/related.css.

    Click on that name so that you can edit it. You should see only 5 sections in that stylesheet. At the bottom, add the following, then click “Update File”:

    /* Do not show YARPP on home page */
    body.page-id-64 #yarpp_widget-4 {
        display: none;
    }

    Since WordPress generates a unique class for the <body> tag for each page or post, the above styling will hide YARPP only on the home page.

    If you create a new home page, you will need to change the page-id part above.

    Please let me know if this is not what you actually wanted to do lol

    Thread Starter MCHLondon

    (@mchlondon)

    Thank you so much – this is exactly what I wanted to do. I’m at the airport just now so will try it when I reach the other end.

    Thanks again for your time 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot remove 'related posts' from homepage’ is closed to new replies.