How to make Wordpress Divi Theme 404 page Full Width

9:17 PM Hendry 1 Comments

Add the code below to your Child theme's functions.php

function my_body_class($classes) {
    $classes[] = '';
    // if(is_404()){
    if(!is_page()){
    $classes[] = 'et_full_width_page no-sidebar';
    }
    return $classes;
}

add_filter('body_class', 'my_body_class');


Add the code below to your Child theme's style.css

.no-sidebar #sidebar{
display:none;
}

1 comment:

  1. We will install Divi theme and create 4 ET pages at your choice.

    Divi Theme installation included pages:
    The pages could be one of the followings:
    Home (Company/Shop/Basic) page
    Contact page
    About us page
    Shop page
    Project page
    Portfolio page
    Maintenance mode page
    Coming soon page
    Our team page
    Sale page
    Case study page
    Product Features
    Creative Agency
    ...

    For more information :
    https://www.tn76.com/product/divi-theme-installation-4-pages-included/

    ReplyDelete