Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Adarsh Pawar

    (@axmusic)

    Hi,

    Since the URL is in the post content itself, removing it is not possible. However, you can show the post excerpt instead of the post content. This will require a small change in the widget’s HTML code.

    Please open a support ticket on our official site, and we can help you set the excerpt as the intro text in the Post Accordion widget. Be sure to add a link to this thread when opening a ticket.

    Best regards,

    Thread Starter Tejas Hapani

    (@tejashapani-1)

    Hello Adarsh

    Is it possible to remove Read more button from specific accordion?

    For example, few posts have just 2-3 line of text for which we don’t require Read more button.

    Is there any hook or action available that will help me to check the length of post content and allow me to add a class within specific accordion?

    Thanks

    Plugin Contributor Adarsh Pawar

    (@axmusic)

    Dear Tejas,

    Our plugin uses the Twig engine, which can allow you to set conditions to add a “Read More” button. You can use the Twig condition similar to this:

    {% if item.post.intro_full|length > 20 %}
    The text is longer than 20 characters.
    {{item.post.intro_full|truncate(20)|raw}}
    {% else %}
    {{item.post.intro_full|raw}}
    {% endif %}

    Please don’t hesitate to open a support ticket on our official site if you need any assistance in customizing the widget.

    Thread Starter Tejas Hapani

    (@tejashapani-1)

    Thanks Adarsh

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.