Removing the "Category :"

  • Author
    Posts
  • #117214

    Hello,

    When I create a category and I open one of them the title is “Category : Etats-Unis” (https://fuirlaroutine.com/category/mes-voyages/etats-unis/).

    Is it possible to remove the “Caterogy” from all of them ?

    Thanks

    The blog I need help with is fuirlaroutine.com.

    #117318

    ricardpriet
    Theme Author

    Hi fuirlaroutine,
    thank you for writing and using Silvio.

    Unfortunalety the HTML code comes with “Category: name of category”, all together, so it is not possible to select the first word with only CSS to hide it :(

    You can hide the entire section adding this CSS:

    .category .page-header {
        display: none;
    }

    Other options is hiding the category title and add your title in the description field:

    https://en.support.wordpress.com/posts/categories/2/

    So put the name of your category in the category description input and add this CSS:

    .category .page-header .page-title {
        display: none;
    }
    .category .taxonomy-description p {
        font-size: 40px;
        font-size: 2.5rem;
        text-align: center;
        font-weight: 700;
        line-height: 1.4;
        color: #333;
        text-transform: uppercase;
        font-family: 'Montserrat', Helvetica, sans-serif;
        margin: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    In your case, with custom fonts, it would be:

    .category .page-header .page-title {
        display: none;
    }
    .category .taxonomy-description p {
        font-size: 40px;
        font-size: 2.5rem;
        text-align: center;
        font-weight: 600;
        line-height: 1.4;
        color: #333;
        text-transform: uppercase;
        font-family: "jaf-facitweb","jaf-facitweb-1",sans-serif;
        margin: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    It’s not the best solution, but it works great.

    Hope this helps :)
    Thanks!
    Ricardo P. from SiloCreativo

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