Home › Forums › Particles Support › Content SliderWP no HTML
Viewing 4 posts - 1 through 4 (of 4 total)
-
Sven-M. WölfleSubscriberThe 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ölfleSubscriber
Sven-M. WölfleSubscriber
TonyModerator
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.