Can I make add "display:none" to a HTML element via PHP?
In my theme on Drupal 7.50 there is a #banner element just beneath a #menu element. The banner CSS styles are {border-bottom:5px solid blue}
. The problem is that sometimes the #banner element is empty and this causes problems with the layout.
Is there a way to add display:none
to #banner when the banner is empty, using PHP?
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.