html injection “< / span >” in .page-title of category pages created via menu editor.
—
Could you help me with this problem? I would be very grateful.
When we create a specific category page using the menu editor, the following CATEGORY title is generated: <span> (category name) </span>
(it literally looks like this)
I have already tried to inject html in the css editor
(specifically try the following:)
h1.page-title:before {
content: “</h1>”;
}
but naturally this didn’t work, because it doesn’t allow to inject markup.
I’ve had to settle for setting
.page-title {visibility:hidden;}
and use breadcrumbs as a title for now. But I need to fix it because it hides all post titles and that is not what I want.
A solution that occurs to me is to add this in the css
h1.page-title{
visibility:hidden;
}
h1.page-title:before{
happy: ??? ;
visibility:visible;
}
But I need to know which variable “???” in content would return the title of the posts, and the category pages alike.
-
This topic was modified 8 months, 2 weeks ago by
Jmromeu.