Sticky Header - Forum | JoomShaper
Awaiting an answer Helix Framework

Sticky Header

Asked by Christopher Billings 2 years ago Last activity 2 years ago

6 replies

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us, Use this CSS in your custom.css file


#sp-header.header-sticky{
  background-color: #eef568 !important;
}
Christopher Billings Asked this

Greetings,

The code doesn't work!

The template is Yoga.

Tried this code to change the header colour, also didn't work:
.sp-page-title:before{
background: linear-gradient(180deg,rgba(3,25,46,0) 0%,rgb(51 106 157 / 75%) 83.85%) !important;
}

https://prnt.sc/QnCI_Hy5vOOA

Mehtaz Afsana Borsha Staff

Give me your super admin access please. I need to check.

Christopher Billings Asked this

Please find the infos below

Christopher Billings Asked this

Greetings,

is there any update on this matter?

Regards
Chris

Mehtaz Afsana Borsha Staff

Hi

I cant access your site. Could you please check your URL?

Christopher Billings Asked this

sorry, my mistake.

Pavel
2 years ago · edited

Hi. Here is code for header color ( gradient) with default values. Change to yours

#sp-header::after {
    background-image: -webkit-linear-gradient(137deg,#FF5757 0%,#764AFF 100%);
    background-image: -moz-linear-gradient(137deg,#FF5757 0%,#764AFF 100%);
    background-image: -o-linear-gradient(137deg,#FF5757 0%,#764AFF 100%);
    background-image: linear-gradient(137deg,#FF5757 0%,#764AFF 100%);
}

If you do not want to use the gradient, but you want a solid color, then use such a code

#sp-header::after {
    background-image: none !important;
    background-color: #000;
}

Make shure that Sticky Header option is ON.

I also want to note that Yoga uses the outdated Helix 3 framework. I would recommend that you use some template based on Helix Ultimate framework.

Log in to reply.