Viewing 11 replies - 1 through 11 (of 11 total)
  • Hey there PhilipJohnBowyer,

    How are you doing today?

    You should be able to remove those only from archive pages with some custom CSS, please try adding the following code to Appearance -> Theme Options -> Tools -> Custom CSS:

    .archive span.cat-links, .archive span.tags-links {
        display: none;
    }

    This should remove those only on archive pages.

    If the code doesn’t work please keep it added and let me know so I can take a look ??

    Cheers,
    Bojan

    Thread Starter PhilipJohnBowyer

    (@philipjohnbowyer)

    Brilliant – thanks. I think that does just the job.

    Forgive my ignorance, but you say ‘only on archive pages’ which suggests that there will be occasions when this code won’t work – what kind of pages would those be?

    Hey again PhilipJohnBowyer,

    Those should be all category, tag, and any other kind of archive pages for example when you click on the author etc. The reason I’ve said that is because it should not affect single post pages.

    If that doesn’t cover everything and you can still see those somewhere where you don’t want it to be displayed please let me know so I can take a look ??

    Cheers,
    Bojan

    Thread Starter PhilipJohnBowyer

    (@philipjohnbowyer)

    Hi again

    I’m very happy with the fact that you can’t see tags at this point:

    https://www.soulaction.co.za/category/data-base/

    But is it possible to see tags once you click on individual posts. i.e. at the bottom of the page of:

    https://www.soulaction.co.za/seed-of-hope-community-development-south-africa/

    Thanks again

    Phil

    Hey again Phil,

    Sorry for the additional question, I’ve checked your site and I couldn’t find the tags in the single post pages.

    Before we added the CSS were you able to see those in single post pages?

    Sorry for the additional questions, I’m not really familiar with the theme that you’re using.

    Best regards,
    Bojan

    Thread Starter PhilipJohnBowyer

    (@philipjohnbowyer)

    Hi Bojan

    Yes, that’s my question – there are currently no tags in the single post page

    I am pretty sure they were there before we added the code that you suggested

    As I said, I don’t want to see tags in the category, just on the single post

    Thanks

    Phil

    Hey again Phil,

    That’s odd, the code I provided above should remove the tags only on archive pages and not on single post pages.

    Can you please remove the CSS code I provided above and let me know so I can take a look and target it differently.

    Best regards,
    Bojan

    Thread Starter PhilipJohnBowyer

    (@philipjohnbowyer)

    Maybe its something I’m doing wrong?

    Removed the code and now tags are showing in category, but still not single posts

    Hey again Phil,

    I assumed that is the case since I couldn’t find tags in the HTML of your single post pages. I’ve also double checked this on my sandbox site just to be sure and there are no tags in single post pages.

    To add tags to your single post pages you’ll have to make changes to single.php template which is located in the root folder of your theme (ideally you’d want to make these changes in your child theme so you can avoid losing this once you update the theme).

    With that being said replace the code in single.php with this one here https://pastebin.com/fAXf1bC3.

    This should add tags at the bottom of your single post pages.

    Hope this helps ??

    Cheers,
    Bojan

    Thread Starter PhilipJohnBowyer

    (@philipjohnbowyer)

    Seems to have worked – thanks!

    Glad I could help ??

    Cheers,
    Bojan

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Hiding where posts are 'Posted' or 'Tagged' at the Category stage’ is closed to new replies.