• Resolved Thorworx

    (@thorworx-1)


    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.

    https://www.ads-software.com/extend/plugins/testimonials-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Michael Cannon

    (@comprock)

    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.

    Thread Starter Thorworx

    (@thorworx-1)

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Inconsistent widget styling’ is closed to new replies.