How to make Wordpress Divi Theme 404 page Full Width

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;
}

Laravel Installation on Windows 7 XAMPP

https://laravel.com/

1. Composer Installation

Pre-requisites

1. XAMPP

Download Composer Setup

https://getcomposer.org/Composer-Setup.exe

Browser and select ...\xampp\php\php.exe


Click Install and Finish

2. Laravel Project Installation


Create Laravel root folder

Under …\xampp\htdocs\laravel (e.g. …\xampp\htdocs\laravel)

Download Laravel Project

Open CMD using Administrator role, and navigate to …\xampp\htdocs\laravel, and run this command: composer create-project laravel/laravel first-project --prefer-dist
*change first-project to your project name

Run LARAVEL through localhost:<port>/laravel/first-project/public


Make XAMPP phpmyadmin be accessible from other network

1. Make sure phpmyadmin is not running on port 80 ( Change phpmyadmin port )
2. Navigate to \xampp\apache\conf
2. Open up httpd-xampp.conf
3. On the last section, modify as Require Local to Require gll granted

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
#        Require local
Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

</LocationMatch>


4. Setup phpmyadmin security, navigate to \xampp\phpMyAdmin
6. Make sure to enable port forwarding on your router configuration to enable port (both phpmyadmin apache and mysql)

Secure XAMPP phpmyadmin access

1. Navigate to \xampp\phpmyadmin
2. Open up config.inc.php
3. Append the configuration below
4. Modify either deny or allow

/*
 *  phpMyAdmin does no user management and will not cross-check the MySQL account's host with the incoming connection's ip/host
 */
$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][$i]['AllowDeny']['rules'] = array(
    // deny everyone by default
    'deny % from all',

    // allow all users from the local system
    'allow % from localhost',
    'allow % from 127.0.0.1',
'allow % from 192.168.0.16',
    'allow % from 139.195.8.205',
'allow % from ::1',

    // add more usernames and their IP (or IP ranges) here -
    // ...

);

Enable XAMPP phpmyadmin login page


1. Navigate to \xampp\phpmyadmin
2. Open up config.inc.php
3. Modify $cfg['Servers'][$i]['auth_type'] = 'config'; to $cfg['Servers'][$i]['auth_type'] = 'cookie';