Home Forums Free Themes TP Philosophy html injection “” in .page-title of category pages created via menu ed

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #186103
    Jmromeu
    Participant

    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 2 years, 3 months ago by Jmromeu.
    #186109
    Psink
    Keymaster

    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

    #186110
    Jmromeu
    Participant

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.