[Resolved] Editing blog Posts

Home Forums Support [Resolved] Editing blog Posts

Home Forums Support Editing blog Posts

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1370763
    Asiya

    Hi,

    I would like to remove the categories links on my blogs that say “news” and “uncategorized”. I would also like to remove the dates from them and “by mollygene” next to the dates.

    Thank you!

    Asiya

    #1370768
    David
    Staff
    Customer Support

    Hi there,

    this document provides the PHP Snippet to disable Category Links:

    https://docs.generatepress.com/article/generate_category_list_output/

    And you can disable other post meta such as Author and Date using the Blog Layout:

    https://docs.generatepress.com/article/layout-element-overview/

    #1372791
    Asiya

    So if i copy and page the category disable Code to my additional CSS- It throws an error saying “markup is not allowed in CSS”

    I copied the PHP snipper directly.
    Let me know if I am doing something wrong.
    Thanks David as always.

    #1373024
    David
    Staff
    Customer Support

    That code goes in your Child Theme functions.php of if you’re not using a child theme, add the code to the site using Code Snippets plugin.

    More info here:

    https://docs.generatepress.com/article/adding-php/

    #1373889
    Asiya

    PErfect- I added it- it removed the link but the Category text still shows. The link is gone but the text remains. I would like to remove the Author, Category and date.

    #1373895
    Asiya

    Never mind figured it out! Thank you!!

    #1374041
    David
    Staff
    Customer Support

    Glad to hear that.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.