Archived topic
upper widget area
1 reply · Started by francesco on November 11, 2022
I am using a widget in the top bar with social icons, I would like to know if there is a method to make this widget appear only in the mobile version.
p.s if it is better for me to create a block without adding other CSS, happy to hear advice on this. thank you
Hi there,
GP comes with built in hide-on-* CSS Classes.
if you use a block and in its Advanced > Additional CSS Class(es) add: hide-on-desktop hide-on-tablet then it will only display on small screen devices.
More info here:
https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes
NOTE: If using GenerateBlocks Pro, it has this built in on G Blocks advanced tab