Blog Widget Style Options

D Started by Dennis · December 11, 2017 at 12:06 pm · 8 replies 1 voice Last reply 8 years, 6 months ago
D
Dennis Original poster
#3

So basically, the widget appears to use Style 2 as its style setting, which is the three posts in a row format. The images in this style are getting skewed and we dont like that. Is there a way to just uuse the full column format of Style 1 with the widget?

Y
Yogendra Original poster
#4

Hello Dennis,

You need to edit some code in theme files and I am assuming that you are using the Child theme also

Follow these steps

Step 1) Open your child theme root folder ie prasoonpro-child (you will find this folder in wp-content/themes/ )

Step 2) Go to inc -> widgets and paste this file here
Download

Step 3) Go to child theme root folder and open functions.php in any text editor

Step 4) Add the code just before the ?> sign

require dirname( __FILE__ ) .'/inc/widgets/blog-style2-section-widget.php';

Step 5) Now login to your WordPress dashboard and go to Appearance->Customize->Additional CSS

Step 6) Paste this CSS and Publish

.blog-wrap .image img{
  height:auto;
  border-radius: 0;
}

Step 7) Now add this widget in your page

Note: This is default 2 columns blog post if you want to show single column then you need to edit this file in line no 80 (<div class=”col-md-6 col-sm-6″> ). Just change 6 to 12 for eg(<div class=”col-md-12 col-sm-12″>).

From Line no 55 you can set number of posts to display. Currently set to 2

Regards

Y
Yogendra Original poster
#6

NO, Steps are different if you haven’t installed the child theme.
Do not update the theme once you do the changes otherwise, your changes will be lost, this is why we recommend using child themes

Wait for my next reply for new steps

Regards

Y
Yogendra Original poster
#7

Hello Dennis,

Follow these steps if you haven’t installed the child theme.

Step 1) Open your theme root folder ie prasoonpro (you will find this folder in wp-content/themes/ )

Step 2) Go to inc -> widgets and paste this file here
Download

Step 3) Go to root folder->inc and open widgets.php in any text editor

Step 4) Add this line to the end

require get_template_directory() . '/inc/widgets/blog-style2-section-widget.php';

Now the remaining steps are same ie

Step 5) Now login to your WordPress dashboard and go to Appearance->Customize->Additional CSS

Step 6) Paste this CSS and Publish

.blog-wrap .image img{
  height:auto;
  border-radius: 0;
}

Step 7) Now add this widget in your page

Note: This is default 2 columns blog post if you want to show single column then you need to edit this file in line no 80 (<div class=”col-md-6 col-sm-6″> ). Just change 6 to 12 for eg(<div class=”col-md-12 col-sm-12″>).

From Line no 55 you can set number of posts to display. Currently set to 2

Regards

Post a reply

Join the conversation. Be kind — this is a public forum.

Replying to Blog Widget Style Options

By posting, your reply becomes public (unless marked private).