The CSS of WooCommerce is stretching the images to 100% of their parent <div>
, as seen here:
ul.products li.product a img {
-moz-transition: all 0.2s ease-in-out 0s;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
display: block;
height: auto;
margin: 0 0 8px;
**width: 100%;**
}
You can simply remove or override that line using the !important
declaration in another CSS file. Also, you can override it to width: auto
and change the margin: 0 0 8px
in that rule set to margin: 0 auto 8px auto
to center those images in their div
container.
Related Posts:
- Best way to overide plugin CSS?
- How to get home page ID?
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- How do I cleanly override a plugin’s CSS with a child theme?
- Why does wp_enqueue_style() in plugin not load stylesheet?
- how to include other plugins css files in a shortcode?
- How can I reduce the amount of files loaded/included per plugin?
- How can I make content disappear when a user logs in?
- wp_enqueue_style in Plugin [duplicate]
- Quote rotator in the sidebar
- Make the css of the widget overwrite theme css
- Prevent CSS/JS loading when plugin is not used
- Override Theme CSS with CSS from a plugin
- Styling readme.html in plugin?
- Unable to load stylesheets and scripts to plugin settings page
- Layout shop page: resize images and columns
- How extend shortcode default values for a plugin?
- How to override my plugin’s php classes with duplicates that are in my child theme folder
- How do I write into a file (css)
- Why isn’t “background-image: url”working with Bootstrap carousel on WP?
- How to generate CSS from a shortcode within a plugin
- Custom CSS for plugin form
- How do I modify the position of a plugin?
- plugin style conflicts, how to override? [closed]
- How to disable CSS rule in Twentythirteen style.css?
- Theme’s default styles are overriding my plugin’s custom CSS
- Remove ALL css for a specific plugin page
- How do I display only the latest post on my home page, while maintaining proper plugin hooks?
- Admin Panel pagination link styles
- How to style the RSS wordpress?
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Child Pages Short Code plug-in and hover capabilities?
- How to hide CSS by default and show on button press
- WordPress plugin output formatting
- how to access all user dashboard on fronted page [closed]
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- Ajax Search Lite: Customize Autoscroll
- Delete mobile menu button [closed]
- Widgets Scripts don’t load – but load when I reload the page
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- Stop Plugin from Getting Styles from Other Plugin
- How to apply next/previous classes to LIs for pagination links?
- Override plugin styles via my custom theme
- How to add CSS via custom plugin?
- Plugin Theme CSS [closed]
- how to prevent all css and javascripts files from loading
- Front-end CSS Library for plugin [closed]
- Hide a Menu Item on Login
- Infinite scroll messing up nth:of-type
- Wooslider custom css
- Basics of changing plugin output
- Minimizing scripts & css files that plugins add
- Images under 1MB are not being compressed
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Flickering sidebar when scrolling page [closed]
- Adding a responsive grid onto a page (without using a Bootstrap theme) [closed]
- Is wp_deregister_script the best way to deal with unneeded plugins in a page?
- Block wordpress style for my plugin admin page
- Not able to override plugin’s default css rules
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- insert an html tag using php plugin
- Best practice when modifying plugins CSS [duplicate]
- How to theme code blocks formatted by the prettify.js embedded with WP-Markdown?
- CSS/JS files in WordPress
- How do I override all stylesheets and scripts without a plugin
- How do I work with the SlideDeck plug-in?
- Why is adoptStyles-css stylesheet link added to every page?
- Custom Plugin scripts from admin working in frontend
- Themes conflicts and overrides my WordPress Support widget Plugin styles
- Want to create custom design of progress indicator in wpforms
- Strange admin-ajax / CSS / $_SESSION issue
- how to display recent post by category on home page
- Menu not closing after clicking – WordPress – Elementor
- How to change the WordPress Plugin Watson Assistant Chatbot BOX Size?
- Overriding inline !important CSS with Javscript code snippet with media query
- Apply only the css in my style.css file
- SASS not showing in customized preloader plugin
- make p tag collapsed after 3 rows
- General Term for this form Field
- wp plugin adds “pagespeed.css” after each css file
- How to fix shifting header after installing speed / cache plugins?
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- How to remove a css class for any wordpress page
- Creating wordpress admin page panel [Theme Option]
- Get plugin to background of page
- Speed issues because of CSS & JavaScript
- Like/Dislike Bar not working when updating
- Possible jquery / library conflict in plugin usage
- disable lightbox in a plugin [closed]
- Issue with custom plugin
- Add meta tags with a plugin?
- How to load css files in a specific order
- adding a css file to my plugin
- Element works, but not on wordpress site [duplicate]
- Content expands beyond its column container [closed]
- How to modify submit button on GravityForms
- Option value not getting updated until page refresh in WordPress
- How to create a “Most Popular” & “Latest” TAB in WordPress
- Is there a membership plugin which offers the ability to hide content based on css rules?
- How to add an active state class to my info box