New Landing How can we help? Themeforest Theme Support Dante Setting Full width and boxed layout for individual pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #123058
    rdcsi
    Member
    Post count: 5

    Hello,

    I want to be able to set my homepage as full width with the remainder of my website as boxed. I have achieved this in the past with another site I built via wordpress (but was not using the Dante Framework). Is there a similar code in the PHP I would be able to change with Dante to make this happen?

    —Example code I changed before

    This code was changed in the header.pho of the other site that I was able to make the front page full width and boxed elsewhere

    $style = $avia_config[‘box_class’];

    and change it to

    $style = $avia_config[‘box_class’];
    if(is_home() || is_front_page()) $style = ‘boxed’;

    #123179
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Doing a similar approach.

    Replace this line of code

    
    $page_layout = $options['page_layout'];
    

    by the code below

    
    $page_layout = $options['page_layout'];
    
    if(is_home() || is_front_page()) {
        $page_layout = 'fullwidth';
    }
    

    Here is an image with the files you should change.

    https://www.dropbox.com/s/9hk8jb0o965su56/list_files.png?dl=0

    Hope it helps.

    -Rui

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register