I’ll show you how to set custom admin sidebar menu positions for WordPress plugins and themes in this post. When you set up your administrator option page it may generally look like the below. Now we just want to set the priority of the admin_menu action, that will determine where your ‘My Options’ page will […]
If you are experiencing error 512, then you should consider looking whitelisting Cloudflares IP addresses. Your server/host could be blocking Cloudflare from getting the latest content form your site, which can cause the Error 512. If you are using any kind of WordPress firewall then you should white list the IP’s there as well. I […]
I had always been using The SEO by Yoast plugin on my WordPress sites. But recently I tried The SEO Framework Plugin, and I’m liking it!It’s faster and cleaner. I really enjoy plugins that aren’t pushing their branding too much in the WordPress Admin.Now follow along if you are like me. Let’s export our sites […]
My 3rd WordPress plugin has been Approved on WordPress.org! This time around I’ve created a Plugin for White labelling WordPress. I’m developing it with my own use in mind. I wanted to be able to quickly customise the WordPress login logo, admin text, add dashboard widget, just to name a few things. The screenshots here […]
I’ve completely moved my whole WordPress site over to The SEO Framework from Yoast. I’m extremely happy with TSF so far! I always aim to keep my site as clean and fast as possible. The SEO Framework does not include any advertising or junk. The plugin only leaves a few comments in the frontend source […]
This snippet allows you to get the WordPress feature image and use it as a background. Style it using the css class feature-bg. Remember to put the code around your content in your WordPress Template files. The code will dynamically take the feature image thumbnail if the current post has one.
Sometimes we want to display dynamic content based on where the visitor has come from. The place where the vistor link your website link from is called a “Referer”, so when someone clicks your link on Google, then Google is the referer. Using PHP we can target users coming from Google, we can then show […]
The sticky payment section in the Storefront Theme can be a little buggy. Sometimes it’s best to remove it. Here is how to make WooCommerce payment section non sticky. Just drop the code into your child themes functions.php
Always try to speed up the WooCommerce checkout as much as your can for your customers. A quick tip is to uncheck the “Ship to different address” checkbox by default. Customers do not commonly use this features and it’s a waste of their time having to untick it. So let’s speed up the time checkout […]
[cc lang=”php”] Copyright © wpsnippets.co
WordPress white screen after moving hosting? You might have a corrupted .htaccess file. There are many reasons your WordPress installtion could be showing a white screen. In some cases fresh .htacess file in the main directory can fix your WordPress site. I recommend renaming the old file via FTP or SSH. name it something like […]
WordPress normally sends emails from firstname.lastname@example.org. If you want you to change which email alias WordPress should send emails from, then you can put the following into into your functions.php or a plugin. I’ve also included the function to change the WordPress email sender name. Replace the email and name for your own site.