1

Hi i am developing a website using DIVI theme. I want to change WordPress post design.
Please find bellow attached two images.

This is what i want This is my current design

Please answer in detail and also let me know that in which file this code exists in files so i can edit it. And moreover you can suggest me best techniques to use divi theme, I have purchased complete package of divi theme. Thanks in advance

Community
  • 1
  • 1
atif ishaq
  • 27
  • 6
  • Have you done any research at all, or have you tried anything? Visit the [Wordpress Codex](https://codex.wordpress.org/) for functions that you can use in your template files. – Hans Sep 15 '18 at 13:04
  • Yes michael yes i spend 2 days to find any solution but i could,nt be able to find it...Actually i am using DIVI theme for first time. If i develop custom theme then its very easy but i am customizing divi theme. – atif ishaq Sep 15 '18 at 15:48

3 Answers3

1

You should consider using the Wordpress Codex or Wordpress Developer references.

Below you'll find a little kickstart for you how you could do that, just change the classes to your needs. To get the expected results use this code within The Loop.

You can use comments_number() to display the current amount of comments for each post:

e.g.

<div class="comments-wrapper">
 <i class="icon-class"></i>
 <p class="comments-count"><?php comments_number( 'No Comment', 'One Comment', '% Comments' ); ?></p>
</div>

And you can use the_category() to display the current category of the post:

e.g.

<div class="category-wrapper">
 <i class="icon-class"></i>
 <p class="category"><?php the_category( ' ' ); ?></p>
</div>
thetw
  • 88
  • 7
  • actually i have added post on page using divi page builder, I ma not unable to fine the file where i will have to make change? – atif ishaq Sep 15 '18 at 18:21
1

Divi by default doesn't allow this.. but you can Show the category and Comments first.. then edit the post archive .php

Noz
  • 61
  • 6
0

here you have to select post category and tag and updated Divi theme it will show automatically if you select categories and tags post type