Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1333408
    Kobber
    Participant

    Hi,

    On my site I use fullwidth layout, but I was wondering if I could have boxed layout on my blog page(s)? And if I also want a background image to go with the boxed layout, where would I insert that?

    #1333513
    Lely
    Moderator

    Hello Kobber,

    That is possible with some custom CSS. When you say boxed layout are you referring to the entire page, or just the content area below the header? Does blog pages means blog index page and single post page too? Please clarify that so we can be specific on our suggestion.
    For example, on blog index page, you may add the following CSS on Appearance > Customize > Custom > Edit Global CSS:

    .blog .site {
        max-width: 999px; /*Adjust this accordingly*/
    }
    .blog { /*Change the image URL here to your preferred background*/
        background: url(http://www.vesti-olsen.dk/wp-content/uploads/2016/05/Sporvejsmuseet.jpg) center no-repeat;
        background-size: cover;
    }

    Hope this helps.

    #1333825
    Kobber
    Participant

    Hi Lely,

    Yes I mean both blog index and blog post pages 🙂

    #1333835
    Jade
    Moderator

    Hi there,

    Please update the code to:

    .blog .site,
    .single .site {
        max-width: 999px; /*Adjust this accordingly*/
    }
    
    .blog, .single { /*Change the image URL here to your preferred background*/
        background: url(http://www.vesti-olsen.dk/wp-content/uploads/2016/05/Sporvejsmuseet.jpg) center no-repeat;
        background-size: cover;
    }

    Hope this helps.

    #1333882
    Kobber
    Participant

    Worked perfectly!

    #1334033
    Jade
    Moderator

    Glad to hear that. Cheers!

  • <script> jQuery(function($){ $("#no-reply-1333408 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>