Remove "Category Archive" before archive title doesn't work in Oxygen?
-
Hi,
I get the impression from other posts it should be relatively easy to remove the “Category Archive” text in front of the Archive Title in my Oxgygen themed blog, keeping just the category name. Unfortunately, all suggested code how to do this does not seem to work on my pages…
How should I do this? Thank for your help!
The blog I need help with is: (visible only to logged in users)
-
Give this a try and see what you think.
.archive .page-header h1 { visibility: hidden; } .archive .page-header h1 span { visibility: visible; position: relative; left: -145px; } -
-
By the way, the -145 works well for the Cat Archive, but is too much for the Tag Archive pages (I think because ‘tag’ is using less letters than ‘category’). Is there any way to distinguish between the two and give each its right value?
Thanks oncemore for the great help!
-
Ok, if you are also using tags, then let’s create three different sets of rules, one for categories, one for tags and one for archives. Use what I have above for archives (month/day such as here: http://amsteloost.com/2013/07/19/ ) and then add the following two and adjust the left position as required for the alignment you desire.
.category .page-header h1 { visibility: hidden; } .category .page-header h1 span { visibility: visible; position: relative; left: -145px; } .tag .page-header h1 { visibility: hidden; } .tag .page-header h1 span { visibility: visible; position: relative; left: -145px; } -
-
- The topic ‘Remove "Category Archive" before archive title doesn't work in Oxygen?’ is closed to new replies.