itelio
Forum Replies Created
-
Forum: Plugins
In reply to: [Testimonials Widget] w3c validationHi, Michael!
It worked. 🙂
I unchecked “keep whitespace” and it’s valid now.
Thank you very much for your excellent support.
Have a nice day.
Regards, Alin!
Forum: Plugins
In reply to: [Social Media Tabs] w3c validationHi!
I just fixed the first 3 errors. I deleted them from dcwp
_widget.php.I believe the last 2 errors are related to the tabs functionality and cannot be removed.
AG
Forum: Plugins
In reply to: [Testimonials Widget] w3c validationHi!
Thank you for your reply. I read the FAQs and for some reasons, I found nothing related to <p> tag.
add_filter( ‘testimonials_widget_get_testimonial_html’, ‘my_testimonials_widget_get_testimonial_html’, 10, 13 );
function my_testimonials_widget_get_testimonial_html( $html, $testimonial, $atts, $is_list, $is_first, $widget_number, $div_open, $image, $quote, $cite, $extra, $bottom-text, $div_close ) {
// do stuff… see Testimonials_Widget::get_testimonials_html for default processing
if ( is_page( 437 ) ) {
$source = ”;
if ( ! empty( $testimonial[‘testimonial_source’] ) )
$source = ‘<h3>’ . $testimonial[‘testimonial_source’] . ‘</h3>’;$html = $div_open
. $source
. $image
. $quote
// . $cite
// . $extra
// . $bottom-text
. $div_close;
return $html;
} elseif ( false && $is_list ) {
return ‘- ‘ . $image . $testimonial[‘testimonial_title’] . ‘
‘;
} else {
return $html;
}
}You can filter almost everything but the <p> tag which I think it’s useless in the code.
Maybe you know a trick.
Thank you.
Regards, AG
Forum: Plugins
In reply to: [Testimonials Widget] w3c validationHi!
Thank you for your fast reply.
I did that and the widget looks really bad if I deactivate the q tag.
If I deactivate the q tag, the background is different, the font is bigger, the padding is bigger.
Is there a way to simply remove the p tag?
Thank you.
Regards, Alin!