Use following code to check if specific plugin is active or not in WordPress Theme. For example, to check if One Click Demo Import activation.
Blog of Honar Systems website to learn about technology and development and web design. This contain many tutorial and code snippets to learn.
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).
To add related posts to your theme, open functions.php file and add the following code. Go to your posts display loop and add the function in it.
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.
Post thumbnail sometimes will be real problem for the design. If you are WordPress theme developer, you know what I mean. You can’t force the theme user to adjust post thumbnail with Photoshop or other photo editors. How To Adjust Thumbnail With Custom Size? If you want to crop the thumbnail in theme, do the …
If you want hide content until complete loading, you need a loading page. To create loading page follow the steps. Add below code after the <body> tag. Add styles to your CSS file. And finally add the jQuery code in your js file.
Add the following code to your sidebar style to do sticky.
Let think you are WordPress theme developer and designer and you want use “One Click Demo Import” to import your theme demo contents. There is just three simple steps to do the job. Step One – Export Your Demo Data First of all, export your demo website data by following plugins. Data Export: Go to …
Convert Hex Color Format (#FFFFFF) to RGB