Support » Plugin: Responsive Posts Carousel » Keep description in HTML format

  • Resolved bensadiz

    (@bensadiz)


    Hello,

    How can I display description in HTML format instead of combining it into one div.

    Greetings.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Rameez Iqbal

    (@rameez_iqbal)

    Hi, Sorry I didn’t get it. Can you please explain it a little further?

    Regards

    Hello,

    I meant that I want to display the description in an HTML format, instead of displaying it inside a <p> tag.

    Fortunately, I could do that by changing some code in the carousel.class.php file, here’s the changes that I made :

    Changed this :
    echo wp_trim_words( get_the_content(), $length );
    to this :

    ob_start();
     the_content();
     $the_content_html = ob_get_clean();
     echo html_entity_decode ( wp_trim_words( htmlentities( wpautop($the_content_html) ), $length ) );

    Thank you !

    Plugin Author Rameez Iqbal

    (@rameez_iqbal)

    Thanks for the suggestion, I’m releasing a new version soon and will also add this code snippet.

    Regards

    Thanks for your efforts, I appreciate that.

    Good luck.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Keep description in HTML format’ is closed to new replies.