• Resolved tristanblair2

    (@tristanblair2)


    Hi,

    I am using Omega with a child theme that I created (website is https://goldlionstyle.com/ ). Right now my single post pages are 700 px wide with one column, no sidebar (example: https://goldlionstyle.com/zilker-botanical-gardens/ ). I would like to change the single post page to be wider to 1080px, but I’m worried that doing so will ruin the layout of how my older (700px) posts appear. Is there a way to create a rule so that all posts before ‘x’ date appear as they are now, at 700px wide, and posts after ‘x’ date appear in the new format at 1080px? Or a way to allow different page templates to be used on single post pages?

Viewing 1 replies (of 1 total)
  • Hi,
    You need to create custom function with body_class.

    Without that, you can do this for July 2016 post

    body.y2016.m07 #content.no-sidebar {
        width: 1080px;
    }

    For greater than July 2016, you can do something like this

    body.y2016.m07 #content.no-sidebar,
    body.y2016.m08 #content.no-sidebar,
    body.y2016.m09 #content.no-sidebar,
    body.y2016.m10 #content.no-sidebar,
    body.y2016.m11 #content.no-sidebar,
    body.y2017 #content.no-sidebar,
    body.y2018 #content.no-sidebar,
    body.y2019 #content.no-sidebar,
    body.y2010 #content.no-sidebar {
        width: 1080px;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘change layout of single post pages’ is closed to new replies.