[Resolved] Problem in Page Headers after the last update

Home Forums Support [Resolved] Problem in Page Headers after the last update

Home Forums Support Problem in Page Headers after the last update

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #428307
    Tom
    Lead Developer
    Lead Developer

    Ah, I see the issue. It’s outlined here: https://wordpress.stackexchange.com/a/195433

    So you would need to add this function to allow text-shadow:

    add_filter( 'safe_style_css', function( $styles ) {
        $styles[] = 'text-shadow';
        return $styles;
    } );

    Alternatively, I would suggest giving it a class, and then writing CSS for it. That way you have way more control over the styles, especially on mobile etc..

    #428318
    Mathias

    Here it is. p1 and p2 are defined in custom css.

    <div style="text-shadow: 0 0 10px #2d3638">
    <p1>Text</p1><br>
    <p2>Text</p2>
    </div>
    #428331
    Mathias

    Thanks so much, Tom! I’ll try my luck with css.

    #428335
    Tom
    Lead Developer
    Lead Developer

    I didn’t even know WordPress filtered out the available style attributes – I’ll include some essential ones they’re missing in the next update πŸ™‚

    #428360
    Mathias

    where to press like? πŸ˜‰

    #428533
    Tom
    Lead Developer
    Lead Developer

    haha πŸ™‚ Thanks for bringing this to my attention!

Viewing 6 posts - 16 through 21 (of 21 total)
  • You must be logged in to reply to this topic.