-
AuthorPosts
-
January 12, 2019 at 4:49 pm #1053154
I have “as any site has” some sections in my site, for example:
Homepage: With a blog list showing latest news
Category Page: Showing posts in that category.
Tags Page: Showing posts in that tag.
Archive page: Showing post from a date.
Single post: A post.All my posts start with an image, this image is picked as the featured image as well. So the result is that I have this:
Big Preview
Title
Big ImageDouble images all the place.
I want to remove the big previews for some of them, if I display none big previews with CSS, everything in the complete site disappears and that is not correct.
I want to remove them from archives, category, tag and single, but not from the places that those images are actually needed.
1- The blog list I have in my homepage.
2- Search results.
3- And where just the previews are shown without the actual post content.How?
Thank you.
January 12, 2019 at 11:25 pm #1053247Hey peterolle,
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:#top.single .big-preview,#top.archive .big-preview { display: none !important; }
Best regards,
MikeApril 30, 2019 at 6:20 am #1095598Thank you. That removes the images from search results.
I need to keep those.
How?
May 1, 2019 at 1:59 pm #1096176Hi,
Sorry for the late reply, as I investigate on my localhost this css should not change anything on your search results page, please link to your search results page so we can investigate further.Best regards,
MikeMay 2, 2019 at 8:29 am #1096389This reply has been marked as private.May 3, 2019 at 1:45 pm #1096905Hi,
Thanks, please remove the css so that the images in the search results show again, and we can try again.Best regards,
MikeMay 7, 2019 at 9:49 am #1098025Sure, please let me know the new code.
Thanks.
May 8, 2019 at 7:20 am #1098338Hi,
Thank you for writing back to us. Did you manage to remove the CSS and clear the cache?
I’m still unable to view the images on the search page which you said was visible before adding the code?
Best regards,
VinayMay 8, 2019 at 7:28 am #1098339I haven’t removed it, I am waiting for the new code to replace it.
Keep in mind this is not only for search results, it affects all the site, so removing the code will not help you in anything, you will be able to test with a new code and that is better to be tested in your own install.
Thanks.
May 10, 2019 at 6:24 am #1099164Hi,
Thanks for the feedback, but unfortunately I was not able to reproduce this on my localhost, the search results page doesn’t contain the big-preview class, which the css above targets.
I also checked your search results page which doesn’t contain any image class, but your other pages are hiding the duplicate images.
If you would like to add images to your search results that contain a featured image please try this solution, I tested this and it works.Best regards,
MikeMay 11, 2019 at 8:44 am #1099536Thank you Mike.
So Enfold does not show images in search results and it needs to be modified?
How can I add this to my child theme?
- This reply was modified 5 years, 5 months ago by peterolle.
May 11, 2019 at 4:14 pm #1099585Hi,
Please make a copy of the loop-search.php in enfold/includes and upload an edited version to your child-theme subfolder includes. (commonly it is: enfold-child/includes )
Please read this topic it explains the two types of code and the css you can use.Best regards,
MikeMay 21, 2019 at 11:40 am #1102810Thank you Mike.
Solved.
May 21, 2019 at 12:56 pm #1102836Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Remove Big Preview images per section’ is closed to new replies.