P
P
Philip Gavrilov2018-05-19 18:55:12
css
Philip Gavrilov, 2018-05-19 18:55:12

How to set different styles for the header on the main page?

I have a header with a background on all pages, and on the main page I need to make the background of the header transparent. How to be?
The hat is in a separate chunk, if that. I do not want to duplicate for the sake of adding a class.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Tatyana Anufrieva, 2018-05-20
@kalisto74

in a hat

<div class="стиль для всех остальных">

A
Alexander Sevirinov, 2018-05-19
@sevirinov

Just add to the main class, for example:
write in the styles:

.bg-transparent {
  background: transparent !important;
}

B
be_a_man, 2018-05-20
@be_a_man

Make an additional field, checkbox. And output the class by if else
In the chunk Output of the chunk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question