• Resolved SingingTurnip

    (@ghoststorm)


    Please can you tell me how to remove the tags off the front page and only show them on the actual posts?

    Thanks ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Chrisdc1

    (@chrisdc1)

    Hello the best way to do this would be to make a simple child theme. If you’ve never made one of these before I would recommend this page in the codex for a good introduction.

    You should only need 2 files in your child theme.

    style.css
    You don’t actually need to make any css changes but you’ll need to include the header information as shown on the codex page. Make sure you update the @import url("../twentyfourteen/style.css");
    to @import url("../elucidate/style.css"); as this loads Elucidate as the parent theme.

    functions.php
    The tag lists are generated by the function elucidate_meta() in inc/template-tags.php As this is a pluggable function we can override it in a child theme so create functions.php and add this modified version of the function. (note that the tags code on lines 13-16 now only runs when you are viewing single pages.

    I hope that helps, and thanks for using my theme. Let me know if you need any further guidance with this.

    Thread Starter SingingTurnip

    (@ghoststorm)

    I cannot make a child theme as I do not have FTP access for this particular website.

    Theme Author Chrisdc1

    (@chrisdc1)

    It should still be possible I think, if you download the Elucidate code from www.remarpro.com onto your computer you could use this to create a child theme locally, which you can then upload from the dashboard as a zip file (there’s an upload theme button on the add themes screen).

    A child theme is best if it’s possible, but if it isn’t you could install Jetpack and use it’s edit css tool to hide the tags. Something like this should work:

    .home .tag-links,
    .archive .tag-links,
    .search .tag-links {
       display: none;
    }
    Thread Starter SingingTurnip

    (@ghoststorm)

    Thanks Chris I did it via jetpack as you suggested and that worked ??
    …and finally how do I stop categories being shown on the front page aswell please?

    Theme Author Chrisdc1

    (@chrisdc1)

    Glad I can help. You can do something very similar with categories. Add this to your custom css:

    .home .post-categories,
    .archive .post-categories,
    .search .post-categories {
       display: none;
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Tags from front page’ is closed to new replies.