Documentation

Wordpress Divi Child Theme

Categories
A
Adam Birds
Published 10 August 20262 min read2 views

To create a Child Theme in Wordpress For Divi to edit the footer text follow the below:

SSH into Web Server as Root User

Then run the following commands:

cd /var/www/vhosts/example.com/htdocs/wp-content/themes
mkdir Divi-Child
chown -R examplecomuser:examplecomuser Divi-Child
cd Divi-Child

```e

Create a file called **syle.css** with the following command:

vi style.css

The copy and paste the following text into the **syle.css** file:

/
Theme Name: Divi Child Theme
Template: Divi
Theme URI: http://www.elegantthemes.com/gallery/divi/
Version: 2.7.1
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Tags: responsive-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
/
/ YOUR CSS EDITS GO BELOW THIS LINE AND AND CSS RULES YOU MAKE HERE WILL OVERIDE THE MASTER DIVI THEME CSS RULES /

Then create a file called **functions.php** with the following command:

vi functions.php

Then copy and paste the following text into the **functions.php** file:
Then create a file called **footer.php** with the following command:

vi footer.php

Then copy and paste the following text into the **footer.php** file changing the section of text **id=β€œfooter-info”>Β© 2016 Adam Birds | Professional Portfolio** as you please:


Then run the following commands:

chown -R examplecomuser:examplecomuser *
service mariadb restart
service php-fpm restart
service nginx restart

```

Then navigate to /wp-admin/themes.php of your website and click Activate on your Child Theme.