Greetings, we are using the tagdiv mobile theme plugin, and when we view the posts on a mobile, it does not show any black space on the left and right of the content, and it covers the whole screen. Ideally there should be an indent on the left and right. Please view http://www.photographycourse.net on a mobile to find out the issue. This is not happening with the pages. It’s only with the posts. How can we fix this?
-
This topic was modified 6 years by
domien.
Hello !
That is because you’re using WP Bakery. Please add this custom css code: .single .td-post-content .vc_row {
margin-left: auto;
margin-right: auto;
}
In here: https://www.screencast.com/t/6Ppnv2F2lz
Thank you !
Hi Vlad,
That was a quick fix. Thank you so much for identifying the issue! Do you recommend using a different editor than WP Bakery?
Also, I see that the posts alignment / border spacing issue is fixed for the posts, but the Google ads are not aligning well with the content. Is it because we are inserting the code with the AdBox element? Or may be we need to add the border spacing instructions to the Ad script? You can have a look at http://www.photographycourse.net on a mobile device.
Please let us know and thank you for your great help!
-
This reply was modified 6 years by
domien.
Additional Information: The default Ads for mobile device that are setup through the theme appear well aligned with the content (for example: the header and footer Ad), however the ones we have added within the content using the editor do not appear to align with the content.
Hi Vlad,
It seems like this problem exists (on mobile display) with all of the posts that we have. Here is an example: https://photographycourse.net/what-is-editorial-photography/
Please let us know your thoughts. Thanks!
Hello !
This has to be changed from your adsense account as you can see here: https://prnt.sc/nc11h0
Check the Don’t optimize feature in order to display the ads correctly.
Thank you !
Hello !
Please use this code: .td-post-content .wpb_content_element .adsbygoogle {
margin-left: -15px!important;
}
The code must be inserted in here: https://www.screencast.com/t/3zYzY4sLdum
Thank you !