• Luke

    (@danceyrselfclean_admin)


    I need to display the heading over multiple lines, any html I enter in the heading field gets stripped out.

    Any suggestions?

    I’ve tried adjusting the width of the container but it doesn’t put the words on the correct line as I need.

    I’m going for something like

    This is
    My great heading

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @danceyrselfclean_admin,

    While not ideal you could do in your functions.php:

    
    add_filter('age_gate_logo', function(){
      return 'This is<br />My great heading';
    });
    

    Thanks
    Phil

    Thread Starter Luke

    (@danceyrselfclean_admin)

    Thanks, anyway to target the Headline field that sits below the logo? Or would I just need to just that above filter and include my logo in the output?

    Plugin Author Phil

    (@philsbury)

    Hi @danceyrselfclean_admin,

    You can, you want this filter for that:

    
    add_filter('age_gate_messaging', function ($html, $messages, $age) {
        return '<h2 class="age-gate-subheading">This is<br />My great heading</h2>';
    }, 10, 3);
    

    $html is what it would render by default, $messages is an object of the messages set in the backend and $age is pretty self explanatory I think 🙂

    Cheers
    Phil

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘HTML in Headline field’ is closed to new replies.