Archived topic
Top Bar Padding responsive controls
2 replies · Started by Greg on December 16, 2022
Top Bar Padding does not have separate responsive controls, but it does output different values for mobile. For example, set Top Bar Padding to 5px, and it will still have 30px left and right padding in mobile.
https://www.dropbox.com/s/o3ivprzix2huuwo/Top%20Bar%20Padding%20Customizer.png?dl=0
https://www.dropbox.com/s/26347bgr5jrff3q/Top%20Bar%20Padding%20output.png?dl=0
Please fix the controls to allow different values for each break point.
Hi Greg,
I'll open a feature request for this as well but I'm not sure if it will be implemented - we are trying to not concentrate on the customizer options too much as they will be obsolete at some point in the future with the way WP is heading.
The better option now would actually be creating a block element and using the before_header hook as I demonstrated here:
https://youtu.be/1VQECQxeyQE
You can use the Container padding options to set whatever you want:
https://docs.generateblocks.com/article/container-overview/#spacing
Let me know if this helps :)
At the very least, you should not be outputting CSS that overrides the preferences that are set in the Customizer.