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

    Hello!

    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?

    Thanks!

    #69554

    Hi!

    In header.php replace:

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

    with:

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

    ?>

    Best regards,

    Peter

    #69555

    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!

    #69556

    Hey!

    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.

    Regards,

    Peter

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.