Archived topic
can not hide container on mobile view
11 replies · Started by Karsten on November 26, 2021
Hey friends,
I can not figure out why the first container with email optin is not hidden on mobile view.
Please check out here and advise.
Thank you
Hi there,
Not sure if I understand.
Why should it be hidden?
Hi Leo,
on mobile view there is one optin field above the image and one option field below the image. I would like to hide the one above the image.
Hi Karsten,
On both desktop and mobile there're 2 newsletter register field, just to confirm you want the first one hidden on mobile?
If so, just add the addtional CSS class hide-on-mobile to that container block:
https://wordpress.com/support/adding-additional-css-classes-to-blocks/
Let me know if you need further assistance :)
Yes, this procedure works. Thank you
But I don't understand why I could not use this knobs for this funcionality?
Hi there,
that option should work - it may have been a caching issue, if you can try disabling cache/optimization plugins and then retry that method.
Hi David,
yes, you are right. I have deactivated WPRocket and now I the knobs are working again. What do you recommend now? I think I need WProcket for better performance or not?
We don't use WP Rockets ourselves but it shouldn't be an issue either - just need to make sure the caching is cleared after making changes.
Here are our optimizing tips:
https://docs.generatepress.com/article/configuring-autoptimize/
hmm, unfortunately clearing the cache didn't work properly.
Do you use any other caching plugin instead?
No - we just use Autopimize as suggested above.
You can check with WP Rocket's support team to see if they can comment on the issue - might just be a setting you have to turn off.
ok, fine, thank you Leo
No problem :)