Post width for full width

Posted in: Newspaper
Post count: 82

Hi

where can I adjust the width of the Posts in the full-width mode (no sidebar)?

Cheers
Hansjörg

Post count: 22421

Hello,

Sorry but the theme width cannot be adjusted. It is fixed in our theme and there is no simple method to alter it. Our theme elements depend on the fixed width. Changing the width will mean adjusting all of the theme elements to the new width.

Thank you!

Post count: 82

Hi Bodgan

but how can I realize the width of the demo with no-sidebar
https://demo.tagdiv.com/newspaper/td-post-five-things-you-may-have-missed-over-the-weekend-from-the-world-of-business/

It is much smaller than in my theme…

Cheers
Hansjörg

Post count: 20688

Hi,

Sorry for the misunderstanding. You can use the text padding option
https://www.screencast.com/t/xPSjD8VIghgK
That is how you can control the post width, through that padding option.

Thanks

Post count: 82

Hi Simion

Thanks. That is what I am looking for.

How can I set this for all Posts (and pages) via css?

Cheers
Hansjörg

Post count: 20688

Hi,

The paragraph padding adds a class to all the elements which you select to have such padding
https://www.screencast.com/t/3uV4KbJccCv
https://www.screencast.com/t/itP48xvqf
Everything inside it, like paragraphs and headings will be be aligned accordingly.
You could manually apply this padding, depending on what you have in the post content, the padding has to be applied for each.
A code like this will affect all paragraphs and h3 in a post example
https://www.screencast.com/t/EiVBQ7KGJIO8

.td-post-content p,
.td-post-content h3 {
padding-left:4%;
padding-right:4%;
}

For a page it would be like this

.td-page-content p,
.td-page-content h3 {
padding-left:4%;
padding-right:4%;
}

You can modify the padding values as you wish, and experiment further with the codes. Then enter them in Theme panel->Custom CSS.

Thanks

Post count: 82

Hi Simion

how can I make sure, that this padding affects only Content on single Posts and not on archives, front page etc.?

Cheers
Hansjörg

Post count: 20688

Hi,

It should not affect anything else. The post content class in the code is only used on posts, it will affect all posts. The same for page content entered in pages, through the MCE editor.

Thanks

Post count: 82

Hi Simion

I Need to add h2, h4 etc. as well and at least h2 seems to affect archieves and home page

Cheers
Hansjörg

Post count: 20688

Hi,

You need to add the mentioned classes before each element so the padding applies only in those circumstances, like this

.td-post-content p,
.td-post-content h1,
.td-post-content h2,
.td-post-content h3,
.td-post-content h4 {
padding-left:4%;
padding-right:4%;
}

Experiment with this code further and it should work properly.

Thanks

Post count: 82

Hi

how can I aplly this for lists?
I set
.td-post-content ul,
.td-post-content ol
{
padding-left:12%;
padding-right:12%;
}

but this does not work correct as you may see here https://www.catherine-leichsenring.de/mittelstand/2017/09/25/beitrag-4/

Post count: 20688

Hi,

That code should work, it seems to do so when it is applied on the post you mention
https://www.screencast.com/t/Ij7j4Qkj0
It is working for the ordered list but not for the other list form what I can see. That is because a missing comma in the code
https://www.screencast.com/t/Z1GbylOuk

Thanks

Post count: 82

Thanks a lot. Always the small things….

To do the same on pages would “td-page-Content” work as well?

Post count: 20688

Hi,

It should work on page as well, for page content entered through the MCE editor
https://www.screencast.com/t/MqHDs80k
https://www.screencast.com/t/VSnP5QxeqD4C

Thanks

Post count: 82

Great. Is there a way to specify this only for those pages without sidebar?

Post count: 20688

Hi,

You could make the code apply on pages that do not have a sidebar. Something like this should apply only for pages that use the full page (no sidebar)
http://prntscr.com/hmd9l9
http://prntscr.com/hmd94j
This is the code example used

.td-pb-span12 .td-page-content h1,
.td-pb-span12 .td-page-content h2,
.td-pb-span12 .td-page-content h3,
.td-pb-span12 .td-page-content h4,
.td-pb-span12 .td-page-content p {
padding-left:12%;
padding-right:12%;
}

Thanks

Post count: 4

Unfortunatly the screenshots were not available anymore. Could you please renew them as I have the same issue?
Thank you

Post count: 27744
Viewing 18 posts - 1 through 18 (of 18 total)
The forum ‘Newspaper’ is closed to new topics and replies.