Need Help replacing Classic Widget

[ad_1]

Hi @aditya-nath-jha,

Alright, please follow these instructions:

#1 Go to Appearance > Widgets > [Your sidebar] and add a Custom HTML widget right below your “Trending” one.

#2 Set a title for your Custom HTML widget (eg. Trending).

#3 Insert the following shortcode into the Custom HTML widget:

[wpp limit=10 range="last30days" post_type="post" stats_views=0 stats_category=1 wpp_start="<ul class="wpp-list wpp-cards-compact">" post_html="<li class="{current_class}">{thumb_img}<div class="wpp-item-data"><div class="taxonomies">{taxonomy}</div>{title}</div></li>" wpp_end='</ul>']

#4 Save changes.

#5 Add this PHP code snippet to your site, either via your theme’s functions.php or via the Code Snippets plugin for example:

add_filter( 'widget_text', 'do_shortcode' );

#6 Add these CSS rules either to your theme’s style.css stylesheet or via Appearance > Customize > Additional CSS.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer