Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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 Image

    Double 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.

    #1053247

    Hey 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,
    Mike

    #1095598

    Thank you. That removes the images from search results.

    I need to keep those.

    How?

    #1096176

    Hi,
    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,
    Mike

    #1096389
    This reply has been marked as private.
    #1096905

    Hi,
    Thanks, please remove the css so that the images in the search results show again, and we can try again.

    Best regards,
    Mike

    #1098025

    Sure, please let me know the new code.

    Thanks.

    #1098338

    Hi,

    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,
    Vinay

    #1098339

    I 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.

    #1099164

    Hi,
    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,
    Mike

    #1099536

    Thank 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.
    #1099585

    Hi,
    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,
    Mike

    #1102810

    Thank you Mike.

    Solved.

    #1102836

    Hi,
    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

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Remove Big Preview images per section’ is closed to new replies.