Archived topic
Regarding Elements Hook Control
1 reply · Started by Peter Paul on October 9, 2021
Hi GP Team,
I have a question regarding Element Hook's rules.
On the Display Rules, you can control where the Hooked elements would appear. Ex. pages / post / homepage etc.
But what if I want the Hooked Element to only appear when the page is viewed on a desktop?
And if it's viewed on mobile, another hooked element would appear or activate.
Is there a way to do that?
Thanks
Hi there,
The current solution for this is to use the hide-on classes:
https://docs.generatepress.com/article/responsive-display/#using-our-hide-on-classes
Let me know if this helps :)