Answer the question
In order to leave comments, you need to log in
How to hide div on certain pages?
There is a div block with the content class on all pages. I wanted to know if it is possible to hide this div on index.html, and display it on others.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
in the head section of index.html, paste the following:
<style>
div.content {display: none !important}
</style>
jQuery
$(document).ready(function(){
if (document.location.pathname == '/') {
$('.container').addClass("container-hide");
}
});
.container-hide{
display:none;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question