Solved Templates

custom.css

Asked by caroline.b 2 years ago Last activity 2 years ago

it is not possible to change the color of the header and to change the height of the header. It is not working in custom.css

So someone told me to rename custom.css to override.css and put a link to it inside template options custom code before </head> field:

But how do i write this link?

Accepted answer

Marked as the solution
Pavel
2 years ago · edited

Hi Caroline.

Try:

Turn OFF "Compile scss to css" > Save > Turn ON "Compile scss to css" > Save > Clean Joomla and browser cache.

If this does not help to make Header height work, then an investigation of the cause is required through access to your site.

However, now nothing prevents you from using CSS. Here you can find complete snippet to change Header height

https://www.joomshaper.com/forum/question/9639#qa-answer-47091

For header use this custom CSS

Hi Mehtaz. Sorry , but your answer is completely incorrect or even harmful

caroline.b Asked this

Turn OFF "Compile scss to css" > Save > Turn ON "Compile scss to css" > Save > Clean Joomla and browser cache.

Now the header is working through tab BASIC ==> Header==> header Height. Without using custom.css

11 more replies

caroline.b Asked this

I have been adjusting colors in custom.css for several days now. Sometimes it's working, but then it disappears again. Can I get help with your templates?
I'm not a beginner, but this tops everything

I made a custom.css in the folder css, this is my css, but it is not working!!!!!
How can i in this template compile CSS?

//knoppen social media laten werken op smartphone en tablets//

sppb-addon-wrapper-3d5bbec3-2307-42e9-9902-0f66d5f74fe1,

sppb-addon-wrapper-349cbe32-bc13-4b12-9a8e-4b60f308366c {

z-index: 9;

}

//achtergrondkleur header en hoogte header//

sp-header {

background: #000000;
height: 95px;

}

sp-header.header-with-modal-menu {

color: #252525;
height: 95px;

}

sp-header.header-with-modal-menu a {

color: #af9462;

height: 95px;
}
.fa-solid, .fas, [class*=" icon-"], [class^=icon-] {
color: #af9462;
}
//kleur streepjes bij offcanvas//
.burger-icon>span {
background-color: #af9462;
}

sp-header.header-with-modal-menu a:hover {

color: #85724d;

}
//kleur menu-items offcanvas//

modal-menu .sp-megamenu-parent>li:hover>a, #modal-menu .sp-megamenu-parent>li:hover>span, #modal-menu .sp-megamenu-parent>li.active>a, #modal-menu .sp-megamenu-parent>li.active>span {

color: #af9462;

}
//kleur afsluitkruisje bij offcanvas//
.offcanvas-active .burger-icon>span, #modal-menu-toggler.active .burger-icon>span {
background-color: #af9462;
}

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us. Could you please give me your super admin access? So that I can check.

-Regards.

Pavel
2 years ago · edited

Hi.

First. Use this button to provide the code.

I'm not a beginner

This is not an argument. Your code does not work because it contains:

  1. Incorrect selectors. For example should be #sp-header but not sp-header
  2. Perhaps not understanding of the layout on your part, which leads to the inoperability of the code as z-index: 9; in your context
  3. For some things, the use of !important may be required.
  4. Incorrect syntax for comments. Should be /*...*/, but not //...//

Resume - the reason is only your code and nothing else. Browser Dev Tools will always tell you the reason for the inoperability of the code.

caroline.b Asked this

hello
this code i got from joomshaper support: 'Perhaps not understanding of the layout on your part, which leads to the inoperability of the code as z-index: 9; in your context'
Because the social media icons where not working on the home-page

Why do i need to use !import?
where do i need to use it and where not?

I tried both: #sp-header or sp-header

I will change the comments syntax

I'm using notepad++ to write or paste the code

I also want to change the height of the header, but it is not working - and I used the template options

caroline.b Asked this

i tried again with other syntax like you told me, but still the same problems. nothing is changing

/*knoppen social media laten werken op smartphone en tablets*/
#sppb-addon-wrapper-3d5bbec3-2307-42e9-9902-0f66d5f74fe1, 
#sppb-addon-wrapper-349cbe32-bc13-4b12-9a8e-4b60f308366c {
    z-index: 9;
}
/*achtergrondkleur header en hoogte header*/
#sp-header {
    background: #000000;
  height:75px;
}
#sp-header.header-with-modal-menu {
    color: #252525; 
}
#sp-header.header-with-modal-menu a {
    color: #af9462;
}
#fa-solid, .fas, [class*=" icon-"], [class^=icon-] {
    color: #af9462;
}
/*kleur streepjes bij offcanvas*/
#sp-header .burger-icon>span {
    background-color: #af9462;
}
caroline.b Asked this

I just want to change some colors in custom.css and it is already more then 2 weeks that i'm working on it. No result and during the week no support!

I just want that the social media icons will work, no result .......

Mehtaz Afsana Borsha Staff

Could you please give me your super admin access? I need to check.

caroline.b Asked this

See hidden content

Pavel
2 years ago · edited

I just want to change some colors in custom.css and it is already more then 2 weeks that i'm working on it. No result and during the week no support!

I am not an employee of support. If you could provide a public link, I could help you to save your time

caroline.b Asked this

Ok, sorry i thought you where an employee of joomshaper

webdesign-caroline.eu

Pavel

While your site is at the stage of development or editing code, any caching and compression must be OFF. Including therefore your code does not work. Turn it OFF. After that I can look.

caroline.b Asked this
2 years ago · edited

Cache is off, compression css files is off, compress javascript is off, compile scss to css is off.
After a few hours most of the colors seems to work, but the social media bottons are not working on smartphone.

last week you gave me:

#sppb-addon-wrapper-3d5bbec3-2307-42e9-9902-0f66d5f74fe1, 
#sppb-addon-wrapper-349cbe32-bc13-4b12-9a8e-4b60f308366c {
    z-index: 9;
}

But I changed the layout, and now the social media buttons are not working anymore. I must change the z-index again?

Height of header is not working when i'm using the options of the template, only when i use a height in custom.css

this is my custom.css again

/*knoppen social media laten werken op smartphone en tablets*/
#sppb-addon-wrapper-3d5bbec3-2307-42e9-9902-0f66d5f74fe1, 
#sppb-addon-wrapper-349cbe32-bc13-4b12-9a8e-4b60f308366c {
    z-index: 9;
}

/*achtergrondkleur header en hoogte header*/
#sp-header {
    background: #000000;
  height:75px;

}
#sp-header.header-with-modal-menu {
    color: #252525;

}

#sp-header.header-with-modal-menu a {
    color: #af9462;

}
.fa-solid, .fas, [class*=" icon-"], [class^=icon-] {
    color: #af9462;
}
/*kleur streepjes bij offcanvas*/
.burger-icon>span {
    background-color: #af9462;
}
#sp-header.header-with-modal-menu a:hover {
    color: #85724d;
}
/*kleur menu-items offcanvas*/
#modal-menu .sp-megamenu-parent>li:hover>a, #modal-menu .sp-megamenu-parent>li:hover>span, #modal-menu .sp-megamenu-parent>li.active>a, #modal-menu .sp-megamenu-parent>li.active>span {
    color: #af9462;
}
/*kleur afsluitkruisje bij offcanvas*/
.offcanvas-active .burger-icon>span, #modal-menu-toggler.active .burger-icon>span {
    background-color: #af9462;
}
Log in to reply.