Full width single post at 740px

Homepage Community Forums Ally Theme Support Full width single post at 740px

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #15842
    LISA
    Customer

      Hey Wes, what would be the Genesis best practice to create a full width single post at 740px wide section, no aside?

      Do I create a new custom body class for content that does not float right?
      Do I create a new single post template, like a new single-full.php and remove the sidebar, or do I do this in functions.php

      Thanks!

      Lisa

      #15847
      Wes
      Moderator

        Are you planning to do this for just one page, while keeping the other pages different? If so, I’d probably just create a Body Class, and then add some CSS for it so when a page is using it, the width will adjust to what you have in the CSS.

        Let me know if that helps, if not just send me a link (or a temporary login) and I can set it up for you and show how I did it.

        #15858
        LISA
        Customer
          This reply has been marked as private.
          #15863
          Wes
          Moderator

            Check out the post link and see how it looks.

            I just came up with a body class named fw-740 (you can change it if you want). So once you add that in the body class field, you would need to create some CSS to get it working. I added this at the bottom of your CSS file –

            .fw-7401 .content {
            	float: none;
            	margin: 0 auto;
            	max-width: 740px;
            }

            So now anytime you want to use the Body Class, just add fw-740 in the Body Class field, and also make sure and select the Full Width layout. Once you do that, then the page will automatically have the 740px full width with no sidebar.

            #15864
            LISA
            Customer

              Awesome! Simple enough CSS, doh!

              Thanks so much, Wes and have a great rest of your holiday weekend:)

              Lisa

              #15865
              Wes
              Moderator

                You’re Welcome!

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘Full width single post at 740px’ is closed to new replies.