This topic has 3 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #86311
     mikes
    Participant

    HI, we need HTML code in the  ‘Header Content’ area. How can we make the theme allow this?

    Many thanks,

     

     

    Mike

     

    #86352
     sharmstr
    Moderator

    Kleo has hooks that allows you to inject code into different parts. https://archived.seventhqueen.com/documentation/kleo#hooks

    Example

    COPY CODE
    
    add_action('kleo_before_main','add_my_html');
    function add_my_html() {
        echo "<h2>I've been added.</h2>";
    }
    

    There’s also Header content fields in the page editor.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #86520
     mikes
    Participant

    Hi,

    sorry not sure if i was clear..

    Currently the ‘header content’ area (which is an optional kleo section on a post page) is not rendering html, so if i put <B>Title</B> – i want it to render a bolded ‘Title’, instead it currently shows <B>Title</B>.

    Is there some code we can add to make sure html codes render?

    Many thanks,

    Mike

    #86579
     sharmstr
    Moderator

    What version of Kleo are you on? It works for my sites.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?