How To Add Tags To Divi Theme - kary4/divituts GitHub Wiki

By default, Divi doesn’t show tags on your article page, so in this tutorial we are going show them in two different locations.

But first, you will need a child theme so updates won’t remove this customization. If you need a child theme, you can get it here.

**In the meta section below the title

1- Open the single.php file and search for this code:

et_divi_post_meta();

2- Bellow it add this code:

?> <div class="cu-tags">| <?php the_tags(); ?></div> <?php

3- Now add this code in your theme options custom CSS field:

.single-post p.post-meta {
margin-right: 5px;
display: inline;
margin-bottom: 0 !important;
padding-bottom: 0 !important;
}
.single-post .cu-tags {
margin-bottom: 30px;
display: inline;
}
.et_post_meta_wrapper img {
padding-top: 30px;
}

4- Make sure you move the single.php file to your child theme folder.

**Below the post

1- Open the single.php file and search for this code:

<div class="et_post_meta_wrapper">

2- Bellow it add this code:

<div class="cu-below-tags"><?php the_tags(); ?></div>

3- Now add this code in your theme options custom CSS field:

.cu-below-tags {
    margin-top: 30px;
}

4- Make sure you move the single.php file to your child theme folder.

⚠️ **GitHub.com Fallback** ⚠️