Home Forums Particles Support Content SliderWP no HTML

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

  • Sven-M. Wölfle
    Subscriber

    The Content Slider WP 2.1.4 doesn´t format html even if content ist set to it.

    In the twig from line 445:

    {# Set Item Content #}
    {% set item_content %}
    {% if display.text.type %}
    {% set post_text = display.text.type == 'excerpt' ? post.post_excerpt : post.content %}
    <div class="tm-content jl-panel{{content_text_transform}} jl-margin-{{ particle.content_margin_top == 'default' ? 'top' : particle.content_margin_top|e ~ '-top' }}{% if particle.content_style != 'default' %} jl-text-{{ particle.content_style|e }}{% endif %}{% if particle.content_text_color != 'default' %} jl-text-{{ particle.content_text_color|e }}{% endif %}{% if particle.content_visibility != 'inherit' %} jl-visible@{{particle.content_visibility|e}}{% endif %}{{content_transition}}">
    {% if display.text.formatting == 'text' %}
    {{ post_text|truncate_text(display.text.limit)|raw }}
    {% else %}
    {{ post_text|<strong>truncate_text</strong>(display.text.limit)|raw }}
    {% endif %}
    </div>
    {% endif %}
    {% endset %}

    I changed it to:

    {# Set Item Content #}
    {% set item_content %}
    {% if display.text.type %}
    {% set post_text = display.text.type == 'excerpt' ? post.post_excerpt : post.content %}
    <div class="tm-content jl-panel{{content_text_transform}} jl-margin-{{ particle.content_margin_top == 'default' ? 'top' : particle.content_margin_top|e ~ '-top' }}{% if particle.content_style != 'default' %} jl-text-{{ particle.content_style|e }}{% endif %}{% if particle.content_text_color != 'default' %} jl-text-{{ particle.content_text_color|e }}{% endif %}{% if particle.content_visibility != 'inherit' %} jl-visible@{{particle.content_visibility|e}}{% endif %}{{content_transition}}">
    {% if display.text.formatting == 'text' %}
    {{ post_text|truncate_text(display.text.limit)|raw }}
    {% else %}
    {{ post_text|<strong>truncate_html</strong>(display.text.limit)|raw }}
    {% endif %}
    </div>
    {% endif %}
    {% endset %}

    Sven-M. Wölfle
    Subscriber

    is not in the twig!


    Sven-M. Wölfle
    Subscriber

    <strong></strong> I ment.


    Tony
    Moderator

    Hi there,
    Could you please give me a screenshot your particle setup and the code for post content so I can check it ? Did you get the same result with the default WordPress Posts particle ?

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

You must be logged in to reply to this topic.

Gantry5 particles 2.1.5 released, new features, bug fixes and more Changelog
HAPPY NEW YEAR - Save 40% Off Everything! Discount code: NEWYEAR2021 Shop Now