Okay
  Public Ticket #1386612
Color overlay for Nectar Slider
Closed

Comments

  • rogeroldham started the conversation

    Hi,

    I need to be able to add a color overlay with a gradient from #000 to clear (running from top to bottom) for the nectar slider on the homepage of my site.

    I can't seem to configure this in the admin - please can you advise.

    Many thanks.

  •  8,425
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box located in your Salient Options panel (Make Sure there are no red cross in the Box) :

    .active_texture {
        background-color:rgba(0, 0, 0, 0.5) !important;
    }

    Thanks


    ThemeNectar Support Team 

  • rogeroldham replied

    Thanks. I wanted to apply a controlled gradient and so adjusted as follows:

    .active_texture {
        background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2)5%, rgba(0, 0, 0, 0)), url('../img/textures/grid.png');
    }

    This works applying the controlled gradient color, but I can't seem to get the textured background to show.


  •  8,425
    Tahir replied

    Hey Again,

    You will have to add the full url of the image . Upload the image to the media library and then link it like below.

    background: linear-gradient( rgba(0,0,0,0.9),rgba(0,0,0,0.2)5%,rgba(0,0,0,0)),url(http://woocommerce-123868-355062.cloudwaysapps.com/wp-content/themes/salient/img/textures/grid.png);

    Thanks



    ThemeNectar Support Team 

  • rogeroldham replied

    Awesome, thanks!

  •  2,725
    Andrew replied

    Hey there,

    Thanks for reaching in.

    Hope the solution works. Please be sure to reach in incase you encounter another problem.

    Regards

  • rogeroldham replied

    One more question on this - how can I target the page header on any page with the same gradient?

  •  8,425
    Tahir replied

    Hey Again,

    Please provide the page url so that i can write up the custom css for whats possible.

    Thanks


    ThemeNectar Support Team 

  •   rogeroldham replied privately
  •  8,425
    Tahir replied

    Add this into the Custom CSS box located in your Salient Options panel (Make Sure there are no red cross in the Box) :

    #page-header-bg[data-bg-pos="center"] .page-header-bg-image:before {
        content: "";
        position: absolute;
        width: 100%;
        background: linear-gradient( rgba(0,0,0,0.9),rgba(0,0,0,0.2)5%,rgba(0,0,0,0)),url(http://woocommerce-123868-355062.cloudwaysapps.com/wp-content/themes/salient/img/textures/grid.png);
        height: 100%;
        top: 0px;
        right: 0%;
    }

    Thanks


    ThemeNectar Support Team 

  • rogeroldham replied

    Perfect, thanks.