badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

stop testimonials widget from stripping html code

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6084
    sundari
    Member

    I really need to add a line break/paragraph break in the testimonial widget but the widget won’t recognize any HTML code and strips out line breaks. Help?

    #6093
    Sanjip Shah
    Participant

    @ There is no such option or custom css that would give you this adjustment that you are trying to make. You will have to edit the theme file directly for this. Search for this file attitude_widgets.php file inside the theme folder. Look for this line
    <div class="testimonial-post"><?php echo esc_textarea( $text ); ?></div>
    and replace with
    <div class="testimonial-post"><?php echo $text; ?></div>

    Also, make a child theme to make this change so that you won’t loose this change when you update the theme.

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