Removing "Category:"

  • Author
    Posts
  • #132701

    Hi! Is there a way to remove “Category:” from a page? Thanks so much!

    The blog I need help with is brittaylorwrites.com.

    #132719

    lelandf
    Theme Author

    Hi Brit,

    Did you already take care of this? The category links look hidden to me on your single post pages.

    Or did you want to keep the category links but only remove the “Categories:” text that precedes them?

    Regards,
    Leland

    #132775

    Thanks for replying so fast! It is just on the News page:

    https://brittaylorwrites.com/category/news/

    I added a page from the category “News,” so I wanted to see if there is a way to make the word “Category:” not display on the actual title of the page.

    Thanks for your help!!!

    #132777

    lelandf
    Theme Author

    Oh, I understand what you mean.

    Good news: this is possible with Custom CSS, which you have access to through the WordPress.com Premium plan.

    Bad news: it’s kind of a gross workaround that doesn’t involve removing the word “Category:” but rather removing that entire line of text and adding a new line of text (containing just “News”) with the same styles designed to mimic the original line of text. It will make things a pain if you have more than one category but if you just have News it should be okay.

    .category-news .page-title {
        display: none;
    }
    
    .category-news .page-header {
        color: #878787;
        text-align: center;
        max-width: 680px;
        margin: .67em auto;
        width: 90%;
        font-weight: 300;
        letter-spacing: .1em;
        font-size: 2.25rem;
        line-height: 1.5em;
    }
    
    .category-news .page-header:before {
        content: "News";
    }

    Let me know how it works out for you?

    Regards,
    Leland

    #132778

    Perfect! That worked great! Thanks so much for the help!

    #132882

    lelandf
    Theme Author

    No problem! Glad I could help.

    I’ll go ahead and mark this one as resolved for now but feel free to respond if you’d like to remove “Category:” from other categories besides News. Otherwise, feel free to open a new topic in this forum for other questions related to Spatial.

    Regards,
    Leland

The topic ‘Removing "Category:"’ is closed to new replies.