• Hi,

    I just had a question about the creating Full width pages with the afterlight theme. I can’t seem to find the option on the customiser so is it possible to change the php file? Or is there a simpler method for creating full width pages? Thanks for your help.

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

Viewing 1 replies (of 1 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Afterlight will not render the sidebar if no widgets are added to it although it may look that way. What is happening is the the content area is floated left. When the widgets for the sidebar do not exist, there is a css class added to the opening body html tag, so what we can do is to use that to say, “when there is no sidebar, center the page content”.

    .widgets-hidden #primary {
      margin-left: auto;
      margin-right: auto;
    }

    I’ve not widened the content area, just centered it. See what you think with this.

Viewing 1 replies (of 1 total)

The topic ‘Full Width Pages’ is closed to new replies.