• Resolved djmwright

    (@djmwright)


    Hi,
    I’m a beginner. I have created a simple Twenty Twenty site for my company. Its a combination of pages and posts.
    One of my post categories is “Blog”.
    The page header for blogs reads “Category: Blog”. I’d like it to read “Blog” just like the pages on the site.
    Can anybody help me with this?
    Thanks.
    David

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think you are doing it wrong. Usually we create a page with content intented for website’s front page and then set it as Front page, and then we create an empty page (no content), name it as Blog and then set it as Posts page (this is a so-called Blog page)

    see detail here

    Creating a Static Front Page

    but if you insist to use a category archive link as your main blog page, you can get rid of that “Category” text by putting this CSS into Custom CSS section

    
    .category-blog .archive-title span.color-accent { display: none; }
    
    Thread Starter djmwright

    (@djmwright)

    Many thanks for that. Projects and Blog category pages use posts and i like it that way. I added your code for each category and it got rid of the offending text in the header. Thanks again. David
    PS How do you learn the basics of the CSS stuff?

    Glad you got it working the way you like.

    If you want to do that for ALL categories, to avoid duplicating that code many times, better use this one liner instead.

    
    .archive.category .archive-title span.color-accent { display: none; }
    
    

    To learn CSS, there are many free or paid CSS courses available out there, but I think this old w3schools is best for the beginners because it has the try it live option.
    https://www.w3schools.com/Css/

    Once you have some basic understanding of how CSS works, then learn to use web dev tool.
    https://developers.google.com/web/tools/chrome-devtools

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blog header edits’ is closed to new replies.