WooCommerces css is pretty specific so it can be quite tricky to override it sometimes. To override their css you need to be MORE specific with your css. So an example would be:
@media only screen and (min-width: 768px) {
div.home-intro ul.featured-products li:nth-child(4n), div.home-intro ul.featured-products li.fourth {
width: 20%;
margin-top: 0;
}
}
In the above example I have added a parent element to the css rule (div.main-wrapper). This rule is now more specific and should override Woo’s css.
And you can just put this in the Custom css box, that should be fine.
Note:
Ideally you should be making a custom image size and editing your template to use that image size.
Related Posts:
- What’s the proper way to find and remove duplicate images from posts and the media library?
- get_post_gallery with Gutenberg
- Mixed content warnings after changing site adress from HTTP to HTTPS
- Insert an image into a post by API
- Saving the pre-sanitized filename of an attachment as the Title or Caption
- Creating a rotating header /image slider using theme customization
- Add aditional class to get_avatar when showing image
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- Double thumbnails?
- No srcset for hard-cropped thumbnails
- Loop through child images of a parent for a Nivo Slider
- Slider image issue in wordpress
- Limit author image size
- Remove the http protocol from images
- Retrieving images from a NextGEN gallery
- Query for recent images across multiple posts
- Display one random image, but only if landscape
- Get image alt attribute just by image URL
- Is there a way to get attachment data?
- How to change image url?
- Show taxonomy list with taxonomy images ( SOLVED)
- get_children() not working properly – Only on one post?
- Warning: getimagesize() [function.getimagesize]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 [closed]
- How to add data attribute to all images in posts [closed]
- How to order images in a post in WordPress 3.3?
- Output random (custom) image size
- WordPress crops images differently on retina screens?
- Image thumbnails not available post migration, but still accessible via direct URL – DB issue
- Override img class in gallery
- Exclude images from “inserted into post” when trying to get attachments
- Set jpeg_quality for certain post-types
- WordPress automatically downscaled images larger that original
- Move Image Captions Inside Link ( tag) if Added
- Sharing images to social media – issue with aspect ratio
- How to add custom classes to figure element only if image has caption?
- I got an issue after i migrated a site
- I want to use the GD image editor for just one function then switch back to ImageMagick
- 409 error (Conflict) when trying to insert an image into a post
- Exclude image titles from search results
- Facebook og:image issues after https change [closed]
- Does WP create multiple images?
- Thumbnails generated by “add_image_size” are not removed when removing media
- WordPress 3.0 embedded images
- TImthumb not working for absolute path
- Correctly implementing the Facebook Like button
- Mass crop images: Landscape images -> Portrait images
- Change image name during uploading sequentially
- Store in media library image uploaded from url
- Custom image uploader without widgets
- How to upload and style svg logo?
- css to fit image by HEIGHT
- Some Images Disappeared from Media Library?
- Get an image from url, resize it, and save on a custom folder (not the media library)
- Get all custom sizes in srcset attribute
- are unattached media files a problem?
- Why isn’t add_image_size(‘event-secondary-image-thumbnail’, 250, 150) working?
- Disable image rename on upload
- Development environment and “production” environment domains
- Why am I getting and error from wp_get_attachment_image_src?
- How to add thumbnails to posts and pages automatically in a uniformed fixed elegant way?
- How do I implement an image viewer and rotator? [closed]
- Upload images – Theme options
- Is it possible to modify default image name suffix?
- How to replace post image url before posting using api?
- Background Image Does Not Display on Page
- Can’t fix corrupted images
- Product Images Making a Column
- What’s are some best practices for responsive images (e.g. for section headers)?
- WordPress Single Post image gallery as slider
- Recreate the upload folder from a website without having access to the backend/cpanel/filezilla directly from the website
- how automatically show the image title before the image caption/description in a wordpress gallery?
- There is an image embedded on my page that I can’t locate in order to delete. Please help me!
- Could creation of various image sizes cause slow form submission response?
- Hot Linked Own Images
- Allow users to upload attachments to certain posts
- WordPress and Advanced Custom Fields and Flickity
- How to get image ID based on get_theme_mod image URL?
- How to bulk update then save images in wordpress posts
- stop wordpress from resizing feature gif images
- Change wordpress default upload path to another domain
- Alt attribute is not showing while the value is given in Media
- Alternative image sizes are too large
- Modify media file markup output
- Responsive images in Bootstrap 4 slider
- How can I add an “Attach image to this post/page” link on the Add Media lightbox?
- WordPress Is Saving Original Image Only
- Display images from JS?
- How do i replace the title attribute of img tag with the image caption
- Create slider option in editor
- How to make an image bigger with wp_get_image_editor
- Assign one featured image to multiple posts?
- Why are my ‘medium’ images the wrong size
- How can I hide previous_image_link() on first attachment page?
- An image on my site is showing as the wrong image [closed]
- Set padding for all content except images and few more elements
- Theme files and imagesnot loading on a mobile device
- Guaranteed Image Sizes
- How to change the alignment of the background image for small screen (tablet/smartphone etc.)
- get_theme_file_uri function not showing background image inside data-setbg in html
- Orientation of featured image in post?