WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Changing the column width for posts (default theme) (4 posts)

  1. mark_t
    Member
    Posted 5 years ago #

    I want to increase the width of the text box for the single post page. I changed the ".widecolumn" so that width = 600px and adjusted the fourth margin parameter to 75px in style.css. I thought this would increase the width of the text box whilst keeping it centred, unfortunately WordPress totally ignored these changes. (Yes I did update the file). So does anyone know how I can adjust the column widths and ultimately the width of the full page?

    Thanks, Mark.

  2. Samuel B
    moderator
    Posted 5 years ago #

  3. chaoskaizer
    Member
    Posted 5 years ago #

    You'll need to tweak it a bit, the below workaround will increase the entry content width on single entry page. Add the code ↓ inside your theme's header.php place it before the closing head tag (</head>) .

    <?php if(is_single()): ?>
    <style type="text/css">
    .widecolumn { margin:0pt auto; width:600px }
    </style>
    <?php endif; ?>
  4. mark_t
    Member
    Posted 5 years ago #

    That worked fine, thanks for your help.

    I don't know enough about php or css to know why it worked but it looks fine.

Topic Closed

This topic has been closed to new replies.

About this Topic