How to Install a Child Theme in Divi

In this short tutorial, you will learn how to install a child theme in Divi. The same procedure is needed if you are going to use other WordPress theme.

Watch this video first:

In the video there are 3 files, 1 is functions.php, 1 style.css, and an image for the theme.

So first, open a Notepad, then copy the code below:

Here’s the code needed for the functions.php

<?php
function my_theme_enqueue_styles() { 
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );


//add new code here

Save it as functions.php

Then open the notepad again (you can actually use other Text Editors) and copy and modify the code below:

/*
 Theme Name:     The Disciplers Divi Child
 Theme URI:      https://thedisciplers.com
 Description:    Divi Child Theme customised by WordPress Medics
 Author:         WordPress Medics
 Author URI:     https://www.wordpressmedics.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* Theme customization starts here
------------------------------------------------------- */

You can basically customize all the details here since you are now the new author of this new Child Theme.

Save it as style.css.

Put it in the folder together with your premade image for the theme.

Compress the file and make a zip file.

Upload the Parent theme, in this case the Divi theme and activate it.

Once uploaded, upload the zip file that you made and activate it.

NOTE: Your Child theme won’t activate unless the parent theme has been activated first.

4 Best Free Security Plugins for WordPress

Today, I will share to you the 4 best security plugins for WordPress that I have used personally so far. I say best because I personally tried them and have seen them to be the most helpful and had the least problems after years of used.

security plugin

I have tried other security plugins. Some are really great like Sucuri, but it’s not free. So if you are on a tight budget, then this very short list is for you because they are free and they can do the job.

Akismet – I first used Akismet about 10 years ago. It was created by Matt Mullenweg, the creator of WordPress itself. The plugin first came out in 2005. After more than 10 years, this comment spam filtering plugin became one of the most reliable plugins in what it does.

The main advantage of this plugin is that it was made by the creator of WordPress, and is maintained by Automattic. So, we are pretty sure that this plugin will work well with WordPress.

Also Check: WordPress Optimization Secrets

Akismet is free for personal blogs. You only pay when your site is a commercial one or for business.

Jetpack – This plugin had made a huge leap over the years. I have become aware of the existence of this plugin when I was still new in WordPress. I used this in several of my sites, and it has become a giant security plugin since then.

This plugin contains the necessary security features for free. But if you want to enjoy some serious security features, then you should get the premium version.

Jetpack protects your site from brute force attack, spams, and malwares. It also has an auto-backup features, and performance enhancement features.  

Wordfence – Wordfence is the BEST security plugin that I have tried so far. It includes endpoint firewall and malware scanner. The free version is already a big help to your site. It is a light plugin, but heavy in security.

I would say that this is a MUST to install to your website. The downside of this plugin is that the premium version is quite expensive. If you have funding and do want to have a serious security, then this plugin is a good one.

Bulletproof Security – This plugin probably has the most important security features in this list. It has malware scanner, firewall, login security, anti-spam, etc. And guess what, these essential security features come in free version. I love this plugin. This really has a heavy security feature.

The only downside that this plugin has is that it is heavy on the server side. This works best if you do have a good hosting account. If you have a slow shared hosting, you may want to think twice before installing this one.

So what should I install?

It depends on your need. If you are only for blogging, Akismet is a good spam-filtering security plugin. I haven’t seen an equal so far with this one. However, it is limited to spam-filtering. So apart from Akismet, I will use Wordfence too.

Also Check: WordPress Optimization Secrets

If your site is huge, then I suggest you use Jetpack. And if you can, upgrade it to premium to make the most out of it.

If your site is both blogging and a huge site, and granted you have a good server, use Bulletproof Security.

So there you have it, the best free security plugins for WordPress.

WordPress Optimization Secrets eBook

For quite a while, I started working on gathering my resources and the things that I already know and practicing. This WordPress Optimization Secrets eBook is a product of hard work and knowledge from my wide experience on website optimization.

So in this ebook, I discussed the most important things that one should do in optimizing their website for search engine and for long lasting effect of such optimization.

Wordpress Optimization Secrets

Check: WordPress Optimization Secrets

In this ebook, you will learn the following:

In this Book, You will Learn:

  • Page Rank Basics
  • Using Articles and Blog Posts
  • Backlinks
  • Directories
  • Social Media and Sitemaps
  • etc.

This not an all in one SEO mastery program. But this is the basic things that you should know how search engine works and what you have to do in your website to be called optimized. Meaning this will lay a good foundation for your website when it comes to search engine optimization.

If you are looking for super advanced SEO? This is definitely NOT for you. BUT, if you are looking for SAFE and long lasting optimization effect, this is for you.

Many gurus out there has been suggesting this and that. There is so many technical things to do which makes SEO very technical. However, if you are starting out and want it to be optimized this is the ebook that you should be reading. Very basic, but very powerful.

I have been doing this for quite a while, so I know which ones work and which ones does not. I have sites that ranked well, and I have sites that is also doing well with specific keywords. And what I said in this ebook is what I have been doing in building a strong SEO foundation.

So, go ahead and download this ebook here.

7 Reasons Why Use Divi for Your Next WordPress Project

In this post, I will discuss 7 reasons why use Divi for your next WordPress Project. For over 8 years of experience of setting up WordPress sites, using a premium theme is my most recommended way of starting your project. You can lose a lot of your precious time in the process without achieving much if you experiment on various themes available for free.

Divi Theme

While there is nothing wrong in using free themes, in fact there are lots of good free themes that you can check out there, but the chance of getting the best features that you are looking for a theme is not there or at still lacking.

So why use Divi Theme?

1. Divi is Drag and Drop kind of theme. While there is no such thing as “zero coding” in WordPress setup, Divi greatly reduces the probability of using the code. It’s so feature rich in a sense that you can design almost any kind of WordPress with the least manual coding.

2. Divi is easy to learn. I have seen similar kind of themes out there, but Divi has full tutorials and is a way easy to learn. I can also say that it is one of the most polished drag and drop themes out there, if not the best.

3. Divi has a lot of “premade” layouts in it. This makes designing a lot easier than before. All you have to do is to do some clicks and upload the layout and then customize it the way you want it.

4. Divi has a front end, editing feature. You are able to edit and see at the same time what you are editing.

5. Divi is a good way to start learning WordPress. Some people will probably not agree with me on this matter. However, if you are looking for ahead start in WordPress, Divi is more fun to deal with in designing your first website.

6. Divi a designers dream theme for license. You can have a business without worrying for license. Once you purchased a lifetime license, all the sites that you built is covered with the updates even if the site is your client’s site.

7. Divi has all the tutorials you need. Elegant themes has a ton of tutorials about Divi and it is uploaded also in Youtube. Nearly all your questions will be answered buy just watching the tutorials.

So there you have it. Hope this list of reasons will give you a bigger picture of why I did used Divi in most of my projects lately.

You can get started with Divi here.  

How to Fix “Use of undefined constant OP_SN” Notification

If you are using an Optimize Press plugin, then you might have encountered this notification error:

Notice: Use of undefined constant OP_SN - assumed 'OP_SN' in 
... /wp-content/plugins/optimizePressPlugin/lib/framework.php on line 494

Notice: Use of undefined constant OP_SN - assumed 'OP_SN' in 
... /wp-content/plugins/optimizePressPlugin/lib/framework.php on line 495

This happens if you your WordPress wp-config.php file debug is set to True. I first noticed this notification when my websites upgraded to 4.0 version, and it was very annoying to have this error appearing in the front end of your website.

The solution though is very simple. Just login to your cpanel, locat wp-config.php and look for this line:

 define( 'WP_DEBUG', true ); 

Simply change the “true” to “false”, then click save. That should take out that error line.

Do you have any other solution? Share it below.

How to Add New Widget Area in Genesis

One of the best things that you can get with Studiopress’ Genesis Framework is its flexibility to add new widget area. This kind of flexibility has become a lot easier compared few years ago when Genesis Framework is just starting up. There are some other ways in adding new widget areas if you are using other themes but unlike Genesis, they often use another set of plugin.

In Genesis however, we don’t have to add another plugin. All we need to do is to add a few codes. The first code that we need to add in functions.php of your child theme is this:

genesis_register_sidebar( array(
'id' => 'beforefooter-widget',
'name' => __( 'Custom Widget', 'genesis' ),
'description' => __( 'Custom Widget Area', 'childtheme' ),
) );

This code will register a new widget. Please take note of the following labels:

id = You will have to remember this one because this will be your call id.

name = This is the name that widget.

description = You need this so that you will be able to identify where your code is located.

The second code that you will have to install is where you will want the widgetized area to appear. You will have to be familiar with Genesis hooks location so that you will be able to identify the right call sign. So if you are not familiar with the Genesis hooks, no problem. Just refer in this Genesis visual hook guide. The code is:

add_action( 'genesis_before_footer', 'add_genesis_widget_area' );
function add_genesis_widget_area() {
                genesis_widget_area( 'beforefooter-widget', array(
		'before' => '
‘, ‘after’ => ‘

‘, ) ); }

Please take note that “genesis_before_footer” is the hook. And you can refer to other hooks in the visual hook guide where you want it to appear. In this example, I prefer that it will appear before the the footer.

Now, the third code that we will have to know is the CSS. Please take note of the “id”

//* CSS

.beforefooter-widget {
     background-color: #fff;
     border-top: 1px solid #ececec;
     color: #999;
     clear: both;
     padding: 60px 0 36px;
}

Again, if you are familiar with CSS styling, this will be far more useful to you. The above CSS is what I have used for this example. Feel free to modify it if you want.

Have you ever used Genesis? Share your thoughts below.