Archived topic
Custom CSS don't apply on mobile (directorist plugin)
4 replies · Started by Émilien on March 6, 2023
Hi,
I don't know but my custom css codes on directorist elements don't apply on mobile ? Do you think it's coming from directorist plugin or generatepress ?
Thank you
Kind regards
Émilien
Hi there,
the Theme won't know of that plugin and it won't affect how it loads the styles.
Try disabling any cache/optimization plugins, then clear your browser caches. Do you see the styles then ?
My custom css codes have been saved in the settings of generatepress theme. I only have autoptimize, nothing happens if I clear cache.
Ok, I found the culpit :
« @media (min-width:769px) {
.main-navigation .main-nav ul li.nav-button a {
background-color: #ffffff;
border: 2px solid #000000;
color: #000000;
line-height: 35px; /*this number will likely need to be adjusted*/
}
»
Now it has been working, since I have deleted it
Glad to hear you found the issue