Changes to Category Heading

  • Unknown's avatar

    I want to change the content of the category header and the color of the band it’s displayed on. How would I do that using the Lovecraft theme?

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

  • Unknown's avatar

    To change the background color on the category page title, add the following to your custom CSS and edit the color code as desired.

    .category .page-title {
    	background: #cc0000
    }

    The actual title is created by the theme and WordPress software as a single string of text, so we can’t edit it. Can you explain what you are wanting to do with it and I’ll see what I can do. There are some CSS tricks I can use to replace it, but it isn’t a global thing, so each and every category page would need to have a separate unique CSS rule, and as you add more categories, new CSS rules would need to be created.

  • Unknown's avatar

    thanks! I want to remove the word ‘category’ that comes up when you click on the pages. for ex,if you click “Style” it will come up as Category: Style. How would i make it as just ‘style?’

  • Unknown's avatar

    Hi, as I said, the title for the category pages is a single string of text created by the theme and WordPress software. There is no way to edit that string of text with CSS.

    What you would have to do would be to create CSS rules for each and every catetory. This is an example for the Hangry category.

    .category-hangry .page-title {
    	color: transparent;
    }
    .category-hangry .page-title:after {
    	content: "Hangry";
    	color: #fff;
    	text-align: center;
    	display: block;
    	margin-top: -20px;
    }
  • The topic ‘Changes to Category Heading’ is closed to new replies.