Mat
(@mateithemeisle)
Hello @princepsbruno ,
Thank you for choosing Neve!
Can you please offer more information regarding your situation? Some screenshots or the website URL will help in providing you further assistance.
Also could you please tell us what method did you use to try and customize the CSS?
Thank you and have an amazing day!
Thread Starter
princeps
(@princepsbruno)
HI @mateithemeisle ,
Neve is a great theme!
I am using additional CSS in customizer but every media query (@media only..) i add is not picked up. Several time i had to modify the main theme css in order to achieve the desired results.
And is not limited to media queries only.
Any ideas?
Thanks
Mat
(@mateithemeisle)
Hello @princepsbruno ,
When it comes to CSS modifications you need to make sure everything is in order, because missing a . or {} can be enough to prevent you from seeing the desired results.
I tested on my local machine to remove the header from the page at a min-width of 960px with the below code and it worked perfectly.
@media (min-width: 960px){
h1, .single h1.entry-title {
font-size: 64px;
line-height: 1em;
letter-spacing: 0px;
display: none;
}
}
Also if you are trying to modify CSS without deleting the already written one you might need to add the !important tag at the end of each line that you want WP to customize.
For example if you want to make the header font-size 300px and you would have the above initial code. To make it 300px you should write this in Additional CSS tab.
h1, .single h1.entry-title {
font-size: 300px !important;
}
If none of these examples worked it may mean that there is a problem that stops the CSS from being displayed on the page. It might be caused by a multitude of issues but the most common one is security protocol. You can check this by going to WP Dashboard -> Settings -> General and check to see if your website URL is HTTP or HTTPS. Then look at the search bar of your browser when accessing the website.
If in General Settings your URL is HTTP and the website in the search bar of the browser is HTTPS then the CSS changes won’t be seen on the webpage until you change your General Settings website URL to HTTPS.
Please let us know if any of these fixes worked for you!
Thank you and have an amazing day!