- This topic has 8 replies, 4 voices, and was last updated 2 years, 2 months ago by David.
March 22, 2019 at 7:28 am #846635Adam
I’m having a bit of trouble finding out how to get padding on a mobile device on an advert i have inserted using before_main_content. The padding is fine for desktop but is not there at all on mobile. I guess it’s pretty simple to rectify – I just cant find the right setting!
AdamGeneratePress 2.2.2GP Premium 1.7.8March 22, 2019 at 8:06 am #846666DavidStaffCustomer SupportMarch 26, 2019 at 6:04 pm #850906Scott M
is there a version of this that would apply padding to both desktop and mobile views? I added an element to the before_main_content hook for the blog page so there would be an intro paragraph before my posts. however, i was hoping to add left and right padding so that it looked consistent with the padding for the rest of the site.March 26, 2019 at 10:05 pm #850980LeoStaffCustomer Support
Removing the media query part
@media (max-width: 768px)should make the CSS apply to all screen width:
If you need more help on this, please open a new topic and link us to the site in question.
Thanks!March 27, 2019 at 1:42 am #851068Adam
THank you for your reply! Unfortunately this did not resolve my issue. Is there a way to apply padding to the mobile version (including padding for the sidebars) as appears on the desktop version? THanksMarch 27, 2019 at 4:39 am #851202Scott M
maybe i should open a different support thread, but i am still having trouble. i used elements to add a paragraph before the posts start on the blog page. the hook i’m using is before_main_content. there is no padding around that paragraph. it looks ok on the desktop (not ideal though), but the text runs up against the edge of a mobile display. id really just like that paragraph to have the same padding as a regular page. you can see what i’m talking about here: ——
i’m a novice with css, and tried using simple css to add what you described and it didn’t change anything as far as i could tell. thanks for the assistance.March 27, 2019 at 5:20 am #851242DavidStaffCustomer Support
Hi Scott if you could raise a new topic and then we can provide you with 100% focus.
Adam – that Ad is being placed differently and the issue is its not responsive. Can you check with your ad provider on how to make the adlink responsive as there ins’t we can do to correct that within the theme.April 5, 2019 at 5:11 am #860395Adam
Thank you!April 5, 2019 at 7:05 am #860606
- You must be logged in to reply to this topic.