- This topic has 2 replies, 2 voices, and was last updated 2 years, 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Free Themes › TP Philosophy › html injection “” in .page-title of category pages created via menu ed
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.
Hello @JMROMEU, Update the theme up to the latest version 1.1.4. The issue was fixed in the latest version
Please let us know if there is still an issue
Thank you very much, I’ll check it out.
Anyway fix the problem.
3- It occurred to me to replace the line:
<h1 class=”page-title”>’. esc_html( $template_title ) .'</h1>
for this:
<h1 class=”page-title”>’. ( $template_title ) .'</h1>
in custom-header.php.
Apparently it is a common problem to other wp themes. Thank you very much for your help! and sorry for my bad english
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |