Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1294096
    drfretboard
    Participant

    Good morning!

    I’ve been trying to modify the color of the overlay on the featured image of the masonry blog representation (generic/for all posts), but no success.

    Screenshot

    What’s the code I should be using?
    Note: because of previous ‘discomfort’, I do not modify CSS in the Customizer, but in the style.css of the child-theme.

    #1294097
    drfretboard
    Participant
    This reply has been marked as private.
    #1294147
    Paul R
    Moderator

    Hi,

    You can add this under Custom > CSS in the Customizer.

    
    .entry-thumb {
        background-color:Red;
    }
    

    Change red with the color that you like.

    Thanks

    #1294169
    drfretboard
    Participant

    Thanks, somehow that seems to work now.

    Could you tell me how to set the opacity of the overlay upon hovering without affecting the actual image beneath it?

    #1294265
    Christian
    Moderator

    Please add the code below in your CSS

    a.entry-thumb:hover img {
        opacity: 0.7;
    }

    You can set it from 0 to 1. 1 will show the image without overlay.

    Thanks.

    #1294398
    drfretboard
    Participant

    Thanks again.
    That’s really close to what I’m looking for, however, the icon image becomes opaque aswell, which is not what is required. Overlay yes, icon no…
    Also, and strangely to me, the icon does not have opacity beyond the rectangle of the image…

    #1294528
    Nabeel A
    Moderator

    Hi again,

    Please add the following code as well in your Customizer:

    .entry-thumb:before {
        z-index: 999 !important;
    }

    Let us know how this goes!

  • <script> jQuery(function($){ $("#no-reply-1294096 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>