Theme Author
Tom
(@edge22)
Interesting, what kind of widget are you adding?
A Sam Pro (Free edition) block. The size is 970×90.
Theme Author
Tom
(@edge22)
Is this a custom widget or a regular “Text” widget?
A custom widget.
Actually, thanks to your question, I solved the issue: I tried to add a more conventional widget (Tags) and I noticed it showed up; I then tried to remove, clear the cache, re-add the Sam Pro widget, and clear again the cache and now it show up.
The only issue now is that, when viewed from a mobile browser, it keeps showing on the right of the site title (like on desktop), but of course due to the limited width it is truncated. Is it possible to warp it down the site title?
Thanks again for your help.
Theme Author
Tom
(@edge22)
Hi Tom,
thank you very much for your support.
I have marked the thread as “Solved”.
Just a couple of things if I am not taking much of your time (you already did a lot):
1) in the thread you linked it is mentioned that the text should be centered, but in my case it is not; is it because under “Customizing” -> “Layout” -> “Header” I set the “Header Alignment” to “Left” (on the Desktop being on the Left make it more symmetric with the ad banner on the right)? Is it there a way to ignore that setting and make it centered on the mobile?
2) Is it possible to reduce the space between the widget and the menu bar? On the desktop is not much of a problem, but under a smartphone it is a lot.
Thanks and best regards.
Theme Author
Tom
(@edge22)
Happy to help!
1. Ah, it is centered by default, but re-ordering like that takes the centering away.
Try adding this to the CSS:
@media (max-width: 768px) {
.site-branding,
.header-widget {
margin:0 auto;
}
}
2. Absolutely, try this:
@media (max-width: 768px) {
.inside-header .header-widget {
margin-bottom: 0;
}
}
Hi Tom,
thanks for your answer.
Unfortunately it doesn’t seems to work.
Just to be sure, I do have to put those css codes in ../wp-content/themes/generatepress/css/mobile.css right?
Theme Author
Tom
(@edge22)
Best if you use a plugin like this for all your custom CSS: https://en-ca.wordpress.org/plugins/simple-css/
Hi Tom,
the plugin did the trick.
Thank you very much. π