by mohitgangrade | May 26, 2022 | How-To
Thousands of websites get hacked every day. Yours might be next. Even if you are using WordPress, there is a chance that your website can get hacked. Most of the reasons why websites get hacked can be easily prevented. You can secure your WordPress website even if you...
by Molly Roberts | Jun 10, 2022 | WordPress Code Snippets
If you work with clients, you might want to replace the WordPress logo in the admin bar with your own custom logo. This code will also work for multisite WordPress installations. Place this code in your theme’s functions.php file to replace the default WordPress...
by Molly Roberts | Jun 6, 2022 | WordPress Code Snippets
If you don’t want WordPress to get updated on its own, you can disable the automatic updates using one line of code. But before you do it, you should know that disabling automatic updates in WordPress is a huge security risk. It will put your website at risk of...
by Molly Roberts | Jun 5, 2022 | WordPress Code Snippets
There’s an easy way you can load theme template files in your content. You can display theme template contents using a shortcode. You might have template files in your theme that you want to load inside your content. This shortcode will allow you to load any...
by Molly Roberts | Jun 2, 2022 | WordPress Code Snippets
If you update your blog regularly, you might want to display the Last Update date under your posts instead of the posted date. Displaying the last updated date also tells Google your content is fresh and updated. Place this snippet where you want to display the Last...
by Molly Roberts | Jun 1, 2022 | WordPress Code Snippets
Do you want to change the default FROM Email Address WordPress sends emails from? You can change the default email address and name that WordPress uses to send emails from. Here’s a simple script you can use to change the default FROM Email Address in WordPress:...
by Molly Roberts | Jun 1, 2022 | WordPress Code Snippets
Do you want to change the default FROM Name WordPress uses in the emails? This includes notification emails WordPress sends you and all other users on your website. It also includes the FROM name WordPress might use in a contact form. Add this code to your...
by Molly Roberts | May 31, 2022 | WordPress Code Snippets
If you are building a plugin or a custom WordPress site, for certain pages, you might want to check if the user is logged in. This way you can restrict pages to registered users. The code is really simple: if ( is_user_logged_in() ) { // The user is logged in… }...
by Molly Roberts | May 31, 2022 | WordPress Code Snippets
Do you want to display a list of all the categories on your WordPress site? You can use this code to display a list of all the categories anywhere you want in your theme. If you want to customize the look of this list, you might want to take a look at the reference...
by Molly Roberts | May 30, 2022 | WordPress Code Snippets
If you use excerpts on your WordPress site, you might have noticed that some of them end abruptly and don’t look good. Here’s an easy way to add three dots (…) at the end of every excerpt on your blog. If an excerpt looks like this right now: Lorem...
by Molly Roberts | May 30, 2022 | WordPress Code Snippets
WordPress allows adding captions to the images you upload. These captions are displayed under their respective images in a small font. Although captioning can help better describe images you use in your blog posts, you might want to disable them completely. Copy and...