Okay
  Public Ticket #3670713
Portfolio Element Hover Overlay Color
Closed

Comments

  •  5
    Tobias started the conversation

    I would like to change the color of the hover overlay of the portfolio element. It's set to "Accent Color 1" by default, but I would like to change it to a custom hex.
    Can you please advise on the right CSS to add?

    Will post URL privately in another comment.

    Thanks!

  •   Tobias replied privately
  •  1,875
    Judith replied

    Hello Tobias,

    Thanks for writing to us.

    To make the changes as requested, you will need to add some custom CSS code. To do this, please follow these steps:

    From your WordPress dashboard, Navigate to Salient > General Settings > CSS/Script Related. In the custom code area, insert the provided CSS snippet:

    .carousel-wrap[data-full-width="true"] .portfolio-items .col .work-item.style-2 .work-info >a, .portfolio-items .col .work-item.style-2 .work-info >a, .portfolio-items .col .work-item.style-3 .work-info >a, .portfolio-items .col .work-item.style-4 .work-info >a, .portfolio-items .col .work-item.style-3-alt .work-info >a, .portfolio-items .col .work-item.style-1 .work-info >a {
        background-color: #642828 !important;
    }

    Once the code is added, save and refresh the page to see if the change has been applied. In case it helps, please check this section from the documentation on CSS/Script Related

    If this does not work as expected or If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help. 

  •  5
    Tobias replied

    Hi Judith,
    many thanks – the color overlay works fine, but now my text (ie portfolio project title) is not visible anymore. Could you provide my with the css to target the title and color it black?
    Thank you!

  •  2,958
    Andrew replied

    Hi Tobias,

    Thank you for getting back to us.

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    .portfolio-items .col h3 {
      color: #000000;
    }
    .carousel-wrap[data-full-width="true"] .portfolio-items .col .work-item.style-2 .work-info >a, .portfolio-items .col .work-item.style-2 .work-info >a, .portfolio-items .col .work-item.style-3 .work-info >a, .portfolio-items .col .work-item.style-4 .work-info >a, .portfolio-items .col .work-item.style-3-alt .work-info >a, .portfolio-items .col .work-item.style-1 .work-info >a {
      z-index: 10;
    }
    

    Try this and let us know how it goes.

    Thanks,

  •  5
    Tobias replied

    Thanks Andrew,

    it works visually, but this causes a new problem – now the text is not no longer part of the link. Any other way to achieve this?

    Thanks

  •  2,958
    Andrew replied

    Hi Tobias,

    Thank you for getting back to us.

    You need to remove the CSS I previously shared and also that previously shared by @Judith and replace it with this one.

    .portfolio-items .col h3 {
      color: #000000;
    }
    .portfolio-items .col[data-default-color="true"] .work-item:not(.style-3) .work-info-bg {
        background-color: #ffffff !important;
    }
    

    Try this and let us know how it goes.

    Thanks,

  •  5
    Tobias replied

    Perfection – that's what I was looking for.
    Keep up the great work!

  •  2,958
    Andrew replied

    Hi Tobias,

    Thank you for getting back to us.

    I'm happy that we could assist you! If you haven't already, please consider sharing your experience by leaving a review on ThemeForest. Your feedback is valuable to us and greatly appreciated!

    Regards,