Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Dante post padding missing
New Landing › How can we help? › Themeforest Theme Support › Dante › Dante post padding missing
- This topic has 19 replies, 4 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Dante
-
March 16, 2016 at 5:11 pm #255856
Team – At some point, the standard post template began missing padding between the edge of the page and the content. See attached dantePost.png. I’ve noticed in the code for a page (which retains the necessary padding) that there is a .container inside of the #page-wrap. See attached dantePage.png. This is missing in posts. Was there another method by which posts were supposed to create content padding? Do I need to create a custom post template that has a .container? Thoughts? Thanks in advance! -Paul
Attachments:
You must be logged in to view attached files.March 17, 2016 at 2:00 pm #256080Hi,
Please use this custom css code:-.single-post .body-text { padding: 0px 50px !important; text-align: justify; }
Thanks
MohammadMarch 17, 2016 at 8:18 pm #256186Mohammad – That css doesn’t really fix the issue. The sidebar is also not padding correctly. I of course can also add:
.single-post .sidebar-widget-wrap { padding-right: 50px; }
But again, this wasn’t necessary before. So what changed with Dante that this is now an issue? Did the .container elements get removed?
-Paul
March 18, 2016 at 5:44 am #256219Hi,
Are you using cache plugin and child theme?
Thanks
MohammadMarch 18, 2016 at 3:49 pm #256386Mohammad – We are not using a cache plugin but we are using a child theme. -Paul
March 21, 2016 at 11:50 am #256689Hi Paul,
Can you disable the child theme and re-test. It’s possible if you have added custom CSS it is causing this.
– What theme version do you have?
Thanks,
David.March 22, 2016 at 5:13 pm #257186David – We are using Dante version 3.2.4. As an example, please see the following post: http://bit.ly/1UL3oeW
As far as I can tell, there isn’t custom css or child theme css affecting this layout aspect of the post. Which you can verify using Firefox Web Developer Tools. Nor does the child theme have a custom post template. The child theme does use a custom page template which contains .container elements – but this page was patterned after the default page template from the theme. So my assumption was that the original Dante page template had those same .container elements. The default Dante page template no longer seems to have .container elements however. So it’s possible my assumption is incorrect. The css that controls the .container elements are in Dante’s Bootstrap, as .container is a default Bootstrap element for page layout.
As for the post, I’ve noticed that .inner-page-wrap also has a .row class which has the following css:
.row { margin-right: -15px; margin-left: -15px; }
This brings the content of the .row directly to the left and right edges of the content area. As it’s not being counteracted by its parent container #page-wrap – which has no left and right margins. Indeed this is the case for posts as well. The primary difference being the .container elements which are a child of #page-wrap but a parent of .row. Like such:
<div id="page-wrap"> <div class="container"> <div class="row">
The .container sets widths, padding, and margins via Bootstrap:
.container { max-width: 100%; } .container { width: 1170px; } .container { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
I guess my question ultimately is this – did the Dante theme ever utilize .container elements for post templates? If not, I’ll add them to a custom post template in the child theme. It seems like Dante would have utilized .container elements for this type of layout. Viewing the default dante header.php file shows several uses of .container. Thoughts? Thanks in advance!
-Paul
March 24, 2016 at 2:33 pm #257695Team – it’s been a couple of days. I note that the example Dante standard post type here: http://dante.swiftideas.net/2013/11/09/standard-post/ DOES have .container elements. One prior to the row containing the .heading-text > h1, and another .container containing .inner-page-wrap – which contains the main page content. Is this a specific post format type? Are there some other post or theme settings I should be using? Thoughts?
Thanks in advance,
-PaulMarch 28, 2016 at 12:33 pm #258149Apologies for the delay – but as per our support policy, please refrain from adding a new post as this will only take your topic back in the queue and thus take us longer to respond.
I’ll get this fixed in the upcoming update, looks like there is a container missing around the page wrap. If you need this update sooner I can send over the zip.
– Ed
March 30, 2016 at 3:31 pm #258804Ed – thanks so much for the response and the posting tips. I had been testing a few theories and wanted to update the thread with the results. Perhaps next time I’ll edit my last post. Please send me the update. Thanks again! -Paul
March 31, 2016 at 4:09 pm #259030I’m just checking the availability of this now.
Thanks.
March 31, 2016 at 4:29 pm #259035Hi @WEswift
Done some testing locally but can’t replicate this. Do you have any files in your child theme?
Could you provide a login for me to check the backend?
– Ed
April 4, 2016 at 4:30 pm #259573This reply has been marked as private.April 4, 2016 at 8:14 pm #259593Would it be possible to give that user admin privileges please? Need it to be able to check the templates/make changes to test. That or FTP access to just the themes folder.
– Ed
April 5, 2016 at 8:33 pm #259786This reply has been marked as private. -
Posted in: Dante
You must be logged in to reply to this topic.