How to change the header css with hard code

Posted in: Newspaper
Post count: 12

Hello,

Could you please let me know how can I change the following header css

.td-header-style-1 .td-header-sp-recs, .td-header-style-1 .td-header-sp-logo {
margin-bottom: 28px;
}

I can change it to custom css, but when open the page it will load default first then custom css.
here is the sample page. http://admin.dushi.singtao.ca/toronto/

You can see the top header height changed a little bit delay.

Thank you!
Chris

Post count: 22421

Hello,

If you have too many re-writes to the css then this will happen. If you do not want this effect add your code directly at the bottom of style.css found in the main folder of the theme

Thank you

Post count: 12

Dear Bogdan,

I tried to put the code directly at the bottom of styles.css in the main folder of the theme.
But it doesn’t work.

.td-header-style-1 .td-header-sp-recs, .td-header-style-1 .td-header-sp-logo {
margin-bottom: 0px;
}

It looks like the css code was generated to the page and not call the file style.css

Thanks,
Chris

Post count: 22421

Hi,
Try to add the important tag to it like so:

.td-header-style-1 .td-header-sp-recs, .td-header-style-1 .td-header-sp-logo {
margin-bottom: 0!important;
}

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.