WordPress.org

Ready to get started?Download WordPress

Forums

Different content width on pages than in posts? (2 posts)

  1. yourbusybee
    Member
    Posted 1 year ago #

    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

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic