Home Forums Art WordPress Theme No text formatting when using Gallery Layout Builder

This topic contains 2 replies, has 2 voices, and was last updated by  vanadam 6 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18307

    vanadam
    Participant
    Purchased
    Supported

    Hi, When i’m using the Gallery layout builder for my portfolio pages and i want to insert text between images (using the standard gallery template) i’m not able to apply formatting, not with the text editor, or using HTML (<br> tag for instance doesn’t seem to work).

    Could you help me with this? Thanks!
    Arjan

    #18312

    SeaTheme
    Keymaster
    Purchased
    Supported

    HI,

    The Gallery layout builder text editor does not support some HTML tags(like br) for web security.
    Please change the template file:
    /functions/interface/interface-functions.php

    The best solution is add the HTML tag like br for function line 957 arttheme_shapeSpace_allowed_html() {...}

    OR :

    update the line 849, but it is not good for web security
    <?php echo balanceTags(wp_kses($layout_builder_content[$num], arttheme_shapeSpace_allowed_html()), true ); ?>
    update as:
    <?php echo $layout_builder_content[$num]; ?>

    Regards!
    Bwsm – uiueux.comTwitterFacebook

    #18379

    vanadam
    Participant
    Purchased
    Supported

    Thanks for responding so quickly! I used the first option, it worked!

    greets
    Arjan

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

You must be logged in to reply to this topic.

Join Newsletter(FREE)

Subscribe to our newsletter to receive news & updates. We promise to not spam you, super promise!