• Dear all,

    I am using twenty seventeen and I would like to amend the text-length for all pages.
    I found the below piece of code which works perfect for the first page.
    But I would like to effect all pages the same way. Could someone help me our, how I should add a line of code for all pages (not posts) – thank you so much.

    .page-one-column .panel-content .wrap {
      max-width: 900px;
    }
    .page-one-column .panel-content .wrap img {
      width: 100%;
    }
    
    • This topic was modified 3 years, 8 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mywphome

    (@mywphome)

    Hi there, my be this is not possible..? because the is no reply. But the above code works well for the first page. Unfortunately not for single pages…
    Any suggestion for me..? Thank you so much and kind regards.

    Because everyone volunteers information/solutions, sometimes replies take a long time.

    You might think about creating a page template in a child theme to create the specific width you require. You would then apply that template to your pages.

    Or you can modify the default page template to do the same

    I hope this gets you started.

    Thread Starter mywphome

    (@mywphome)

    Thank you, and sorry I did not wanted to appear impatient. I was not sure if my issue was right placed. To start from scratch is maybe a solution but I was just wandering how to amend this css line for all pages:

    .page-one-column .panel-content .wrap (as copied above)
    -> this must be for the first page

    but how to amend this line for all pages?
    This would be my solution I guess.

    The div’s you want to adjust are
    <div id=”primary” class=”content-area”>
    <main id=”main” class=”site-main” role=”main”>
    At present the primary is set to 800. Try adjusting that in the Dashboard’s Appearance CSS tab. You may have to fiddle with the main to get it to expand.

    (I have only just looked in the inspector and that is where I would start, if you are wanting only a css solution.)

    I hope this will start you on your way.

    Thread Starter mywphome

    (@mywphome)

    Thank you for that suggestion. I am not sure how to transcript this into CSS but this is due to my lack of knowledge. I have to work on that.

    To start:

    #primary .content-area
    {
    width: 90%;
    }

    I hope this might help you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘text-length for all pages’ is closed to new replies.