WordPress.org

Support

Support » Themes and Templates » Different content width on pages than in posts?

Different content width on pages than in posts?

  • yourbusybee

    @yourbusybee

    Hi there,
    I’ve used the following code to set things up so there’s no sidebar on Pages – only on Posts:

    <?php if(!is_page()) {
      get_sidebar();
    } ?>

    Now my problem is that Page content isn’t stretching across the width of the page. Is there a way to create another php if statement that would include a different div width on Pages than on Posts?

    Or is there an easier way to accomplish this?

    I’m using a rather unwieldy template from Themeforest for this. It’s called Retro…in case that’s at all important.

    Thanks in advance.

    ~Laura

Viewing 1 replies (of 1 total)
  • WPyogi

    @wpyogi

    Forum Moderator

    The page width is set in the CSS code, so that’s where you would make the change to the element you want to change. The specific code is very theme specific. Unfortunately, commercial themes are not supported here, partly because they are not available for testing, etc. So you should contact Theme Forest for help with this.

Viewing 1 replies (of 1 total)
  • The topic ‘Different content width on pages than in posts?’ is closed to new replies.
Skip to toolbar