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 can I use WordPress functions in my stylesheet?
- 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 dequeue a Plugin Stylesheet?
- Using standard backend elements in Plugin
- Using tabs for wordpress plugin
- Override CSS settings of plugins
- How can I make content disappear when a user logs in?
- Add CSS animation as Preloader to WordPress
- Best way to inject css into admin_head in plugins?
- wp_enqueue_style in Plugin [duplicate]
- Quote rotator in the sidebar
- Dynamic homepage according to user role
- Styles and Scripts, Selectively enqueue across entire site
- Make the css of the widget overwrite theme css
- How can I enqueue a style only when a particular widget is active?
- WordPress Plugin Look & Feel
- Add CSS class to add-to-cart button, Woocommerce [closed]
- How to load all plugins CSS after child theme CSS?
- I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
- How do I register a stylesheet inside a WordPress widget?
- 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?
- wp_enqueue_style specifics for overwriting plugin styles
- How to override my plugin’s php classes with duplicates that are in my child theme folder
- Is it possible to use Snap Scrolling? [closed]
- Show only preview of posts on the homepage?
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- How do I write into a file (css)
- Speeding up WordPress on a Local Network
- How can I write code in a plugin for my child theme that will allow me to use remove_action() based on if the current page is the home page?
- Edit the stylesheet of a child theme
- How do I override WordPress plugin css [closed]
- WP Plugin CSS not being applied to page
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Customize CSS for “Swipebox ” lightbox
- Set plugin page as homepage
- how to add custom css at top above all css file for specific url
- 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
- Best use adding user generated JS/CSS to a theme with a plugin
- Site not displaying correctly when re-directing from root to sub-directory
- WordPress audio player add class randomly using Audio Album plugin
- Best way for overwriting plugin css with custom one
- Child Theme Changes Are Not Reflecting In Parent Theme
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- Like/Dislike Bar not working when updating
- Possible jquery / library conflict in plugin usage
- disable lightbox in a plugin [closed]
- Display alt text as tool tip on page
- Overwrite CSS of Instaemail plugin popup
- contact 7 plugin stops some pages from working properly
- How to add different CSS for galleries
- How to activate/deactivate menu tab and keep the same id?
- Issue with custom plugin
- MultiPostThumbnails and media queries
- Trouble After Update, Removing Plugin
- Add meta tags with a plugin?
- How to display a sitmap horizontally? [closed]
- How to load css files in a specific order
- Plugins to generate CSS Sprites? [closed]
- adding a css file to my plugin
- Element works, but not on wordpress site [duplicate]
- How to wrap image logo in Homepage with H1 tag
- Eliminate Render blocking CSS?
- Trying to disable all notifications except for one on woocommerce checkout page with css [closed]
- How to Add a Website Background Image to One Page?
- Content expands beyond its column container [closed]
- Woocommerce Product Page Collapsible Box Using CSS
- How to modify submit button on GravityForms
- Can I merge all my JS and CSS in one file using WP?
- A splash page on landing page
- 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
- Can’t change login logo & css – older plugin data blocking?
- How to make a drop-down list so you can press and change display like on this website by using wordpress or CSS
- Sudden ERR_HTTP2_PROTOCOL_ERROR on every JS and CSS files loads
- How to change css poperty through webhook in wordpress
- Dropdown menu only appearing when logged in
- Prevent part of plugin loading in another menu
- opening and closing elementor-widget-container
- Let Dokan / MulitvendorX vendors set currency per product. Best approach?
- How to disable hover zoom on woocommerce. None of the common methods work
- CSS: Help! Need help with icon centering in Divi
- Struggling to edit the width of text in ‘Variations’ template
- How to ajaxify all pages of my Wp Site
- How to resolve Multisite Speed issues