Elemntor has many great widgets that added whit Elementor and Elemntor Pro, but if you need create your own Elementor widget, follow the steps. Open “functions.php” file of the theme and add below code. Create ” example” folder in your root of the theme and create ” example.php” in it….
Elementor has own categories that you can add your custom Elementor widget to them. But sometimes you need to create your own category. To do this add below code to your “functions.php” file or in your plugin file.
One of the methods of designing WordPress themes is to use Bootstrap in the WordPress theme. But adding Bootstrap to the WordPress website template and menu has its own challenges, and we will discuss how to add Bootstrap 4 and 5 to the WordPress theme step by step in this…
Most of the times, you redirected to welcome page after activation of theme. If you want to use this trick in your theme, add below code in functions.php file of your theme. The “hs_welcome” is custom admin page (The “Welcome” page).
Related posts in WordPress is a list of related posts to each other that the theme will display after the post’s content. This list of posts is related to the current post by category in WordPress. To add related posts to your WordPress theme, open the functions.php file and add…
WordPress has default size for post author avatar. If you increase or decrease the size, use following code. Go to place that you want to display the avatar. Above code tells WordPress that, display author avatar image with 100px width and height.