Editing category page IXION template

  • Unknown's avatar

    I would like to remove the word “Category” from the title on category pages.

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

  • Unknown's avatar

    Hi, the WordPress software creates the titles on Category pages as a single string of text, so we can’t change or affect just part of that sting (such as removing Category: but leaving the category name.

    Using CSS, we can right CSS ruled to hide the entire title on category pages and then write a CSS rule to add the category name back in, but it would require a CSS rule for each and every category that you have. If you create a new category, you would then have to write a CSS rule to fix that category as well.

    Here would be an example for fixing your Projects category page. The first CSS rule hides the category titles from all category pages, and the second adds the Projects name back in.

    .category .page-title {
      visibility: hidden;
    }
    .category-projects .page-title:before {
      content: "Projects";
      visibility: visible;
    }
  • Unknown's avatar

    Thank you, I will give it a try, we don’t have a lot of categories so I could add title back for other category pages.

  • Unknown's avatar

    Cool, let me know if you have any problems.

  • The topic ‘Editing category page IXION template’ is closed to new replies.