Removing word Category

  • Author
    Posts
  • #151169

    sepmermagis
    Member

    Hello,
    is there a way that, when I open a category, it doesn’t show up Category: Category Name, but just Category Name?

    The blog I need help with is sempermagis.hr.

    #151178

    lelandf
    Theme Author

    It is possible. Unfortunately, this will be kind of a tedious process.

    You could use Custom CSS to hide the original “Category: Name” text and then use Custom CSS to rewrite whatever you want.

    In other words, you would not technically be hiding “Category:” text, you would be hiding the entire string of text and replacing it with something else.

    Your site appears to be private now so I can’t see what your actual category names are, so I will use my own demo site as an example: https://adalinedemo.wordpress.com/category/paintings/

    Here is the Custom CSS to accomplish this:

    /* Hide all original category titles (i.e. "Category: Paintings") */
    .category .page-title {
        display: none;
    }
    
    /* Consistent styles for all replaced text */
    .category .page-header::before {
        display: block;
        font-size: 72px;
        line-height: 1.19444444444;
        margin: .67em 0;
        text-align: center;
    
        /* This may change depending on custom fonts you use */
        font-family: 'Playfair Display', serif;
        font-weight: 400;
    }
    
    /* Replace the text */
    .category-paintings .page-header::before {
        content: "Paintings";
    }

    If you had a category with multiple words (let’s say “Good Paintings”) then you would replace the .category-paintings part of the last CSS selector with .category-good-paintings. In other words, category names with spaces in them are separated by hyphens.

    Please let me know if you have any further questions.

    #151205

    sepmermagis
    Member

    It worked. Thank you so much!

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