If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #10828


    Is it possible to have the stretched layout for the background on the home page, but then on every other page and post to have just the boxed layout?




    In header.php replace:

    <?php $style = avia_get_option('boxed','stretched'); ?>


    <?php if (is_home() || is_front_page()){
    $style = 'stretched';
    $style = 'boxed';


    Best regards,



    Thanks! That did the trick.

    To make things more difficult: can the header (navigation) and stripe on top be the same on the front page as it is for a boxed layout? I don’t want the stripe to go all the way across, just within the navigation section and possibly have a solid colour in the background o the nav as well with some padding…

    Thanks for the support!



    This is not easily possible because everything depends on the surrounding container. You need to decide if you’d like to use a fullwidth layout or boxed layout.



Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Stretched Background on home page, but boxed for other pages.’ is closed to new replies.