Answer the question
In order to leave comments, you need to log in
Header options on different pages?
The header is laid out on the bootstrap, it has several blocks and a large height, how to make it display them only on the main page? Something like
If not main { id\class
=display:none : \\hide some blocks,
id\class=height:200px ; \\ decrease height,
}
Answer the question
In order to leave comments, you need to log in
Crutches:
1) add a second class to the header and on the main add
<style>
.class{
height:200px !important;
}
</style>
$('.header').css('height', '200');
if (window.location.pathname == '/')
doesn't work for some reason, I had to use the second crutch
$('.header').css('height', '200');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question