"colomat-close" When On a Responsive Device
-
Hi!
Please see my cute site here.
I have a 2 containers, one for mobile and one for desktop, each with several buttons inside that are wrapped in [expand] collapse-o-matic attributes. These shortcodes are built with “roll your own” markup that fires from within my functions.php. They expand into tables that have jetpack buttons in their cells.
Right now, I’ve set the main “happy face” table in my desktop container only to open upon page load by adding “colomat-close” as an attribute. This works as expected on desktop. I have a CSS @media breakpoint that hides the mobile container on desktop with
display:none;
.BUT, on mobile, this still colomat-close also seems to trigger, even though the desktop container and button containing the table with the colomat-close is hidden by to
display:none
after the CSS breakpoint.In short, if you look at my site on mobile, you’ll see a duplicate table on the top that breaks my margins and that is from my desktop-only container via colomat-close. It should be hidden by the CSS @media query, right? Can you please tell me how to get the colomat-close attribute to also obey my CSS and not display?
Thank you!
- The topic ‘"colomat-close" When On a Responsive Device’ is closed to new replies.