WordPress.org

Ready to get started?Download WordPress

Forums

Testimonials by Aihrus
[resolved] Inconsistent widget styling (3 posts)

  1. Thor.worx
    Member
    Posted 1 year ago #

    On some pages, the widget includes .post in the class (for example on the testimonials display page itself, and on pages that are post type archive pages), and on other pages it does not.

    Testimonials (or custom post type/archive page) page:
    class="post-NNN testimonials-widget type-testimonials-widget status-publish hentry testimonialswidget_testimonial testimonialswidget_whitespace post-seq-5 post-parity-odd meta-position-corners post fix

    Every other page of the site:
    class="post-NNN testimonials-widget type-testimonials-widget status-publish hentry testimonialswidget_testimonial testimonialswidget_whitespace meta-position-corners fix

    This makes it difficult to display the widget consistently between pages (or page types). Presumably this has to do with the css generation being done by the plugin? How can I include the .post class in the widget on ALL pages so that the widget displays consistently? I shouldn't think I'd need to use CSS overides to do this.

    http://wordpress.org/extend/plugins/testimonials-widget/

  2. Michael Cannon
    Member
    Plugin Author

    Posted 1 year ago #

    Testimonials Widget is following the proper means for assigning post class information via the WordPress function get_post_class in testimonials-widget.php at line 680. Only the CSS classes testimonialswidget_testimonial testimonialswidget_whitespace are added via the Testimonials Widget plugin.

    I suspect that you have a plugin or theme that's working filter post_class to add the extras of post-seq-5 post-parity-odd meta-position-corners post fix onto each testimonial.

    You might try disabling your plugins one at a time or changing your theme to determine where the change is coming from.

  3. Thor.worx
    Member
    Posted 1 year ago #

    Michael, thanx for your reply... I really appreciate it.

    Since I'm not using any plugins, yes, it must be the theme.

    I use Suffusion as a framework for most of the sites that I develop for clients (using custom child-themes), and I'd really like to be able to incorporate TW on some of them... so I guess I'll dig into the code/css and come up with a solution.

    fwiw, according to what I'm seeing, it is specifically the .post class that is the issue, not the other classes that Suffusion adds.
    I should be able come up with a global css fix, now that I have a better idea of what's going on.

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.