hiding "Category"

  • Unknown's avatar

    Currently on my blog it says “Category: Wellness” on each page. I want the title of the page to remain but hide the “Category” part. Thank You

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Aloha cdorvs, It looks like you have a couple options for this as long as you have a premium or business plan; those will allow you to customize your CSS. You can either remove the entire title (which would include “Wellness”), or you can add code for each archive page, such as Wellness, Beauty, Interior, etc.

    Based on this example, you could try something like this to remove just the “Category:” portion:

    .category-wellness .page-title {
        font-size: 0px;
    }
    .category-wellness .page-title:after {
        content: "Wellness";
        display: block;
    }

    You would have to similar code for each category, replacing .category-wellness with .category-OtherCategoryNames.

  • Unknown's avatar

    this still displays “Category: wellness” with the word “wellness” beneath it. I want it to just say “Wellness”

  • Unknown's avatar

    It looks like .category-wellness .page-title still has a font-size of 12. Out of curiosity, does the following code make any difference?

    .category-wellness .page-title {
        font-size: 0px  !important;
    }
    .category-wellness .page-title:after {
        content: "Wellness";
        display: block;
        font-size: 2.25rem !important;
    }
  • Unknown's avatar

    it worked for the wellness page but if i change the “wellness” to the other categories it doesnt do the same thing for the corresponding pages

  • Unknown's avatar

    If you copied and pasted the code, did the period in front of .category-yourcategoryname copy as well?

    .category-beauty .page-title {
        font-size: 0px  !important;
    }
    
    .category-interior .page-title {
        font-size: 0px  !important;
    }
  • Unknown's avatar

    i just got it to work!

    thank you!

  • The topic ‘hiding "Category"’ is closed to new replies.