Custom.css - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Custom.css

C

caroline.b

Template 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?

0
16 Answers
Pavel
Pavel
Accepted Answer
2 years ago #139328

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

0
C
caroline.b
Accepted Answer
2 years ago #139441

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

0
C
caroline.b
Accepted Answer
2 years ago #138278

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; }

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #138927

Hi

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

-Regards.

0
Pavel
Pavel
Accepted Answer
2 years ago #138950

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.

0
C
caroline.b
Accepted Answer
2 years ago #138953

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

0
C
caroline.b
Accepted Answer
2 years ago #138969

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;
}
0
C
caroline.b
Accepted Answer
2 years ago #138971

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 .......

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #138977

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

0
C
caroline.b
Accepted Answer
2 years ago #138981

See hidden content

0
Pavel
Pavel
Accepted Answer
2 years ago #138983

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

0
C
caroline.b
Accepted Answer
2 years ago #138993

Ok, sorry i thought you where an employee of joomshaper

webdesign-caroline.eu

0
Pavel
Pavel
Accepted Answer
2 years ago #138999

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.

0
C
caroline.b
Accepted Answer
2 years ago #139000

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;
}
0
Pavel
Pavel
Accepted Answer
2 years ago #139007
#sp-header {
    background: #000000;
  height:75px;

This does not require the code. Header height includes a number of other parameters, but not only the Header height itself. Therefore, it is better to configure through the template.

So, in order for the settings of the template to work and at the same time you can use CSS code, your configuration should be this:

  1. Cache off
  2. Compression css files off
  3. Compress javascript off
  4. Compile scss to css should be ON - it is from this that the settings of the template are working. When you ON this Header settings start to work. Turn it off only after the end of development.
#sppb-addon-wrapper-3d5bbec3-2307-42e9-9902-0f66d5f74fe1, 
#sppb-addon-wrapper-349cbe32-bc13-4b12-9a8e-4b60f308366c {
    z-index: 9;
}

If you have changed the layout, then the addons IDs have changed too. Therefore, the code does not work. Set z-index in both addons (Advanced tab) instead of CSS code. Your current layout allows you to use this settings in addons as far as I see.

0
C
caroline.b
Accepted Answer
2 years ago #139092

z-index is working in both addons, I used the settings in advanced tab

Cache is off Compression css files off Compress javascript off Compile scss to css should be ON

thanks a lot!!

But the height of the header is not changing, I used no code in custom.css, only height through the template - no result

0