If in any case you can’t access your WordPress website because your current admin account isn’t working or your site got hacked. You can always create a new admin account via functions.php. If you have access to this file that is. Don’t forget to replace temp_admin, p4ssw0rd!, and email@hoolite.be with your own values. Visit your […]
Add Google Analytics/Tag Manager via functions.php
There are many WordPress plugins that you can use to add your Google Analytics, Google Tag Manager, Facebook Pixel and so much more to your site. But frankly, you don’t need any kind of plugin for that. You can do this quite easily by adding a simple code snippet to the functions.php. Access your child’s […]
Identify and add web browser name as body class using jQuery
There a few cases where you want to identify and target a specific web browser because for example you’re CSS isn’t rendering well on this particular browser. And I’m not point any fingers to a specific browser 👉 ..** IE ** .. 👈 Using the jQuery code snippet below you will add the used web […]
Add custom meta tags to HTML head via functions.php
There are a few cases where you need to add your own Meta Tags in your header. For example to verify that you are the website owner. Meta tags look like this: There are WordPress plugins available to achieve the same. But it can be done without a plugin if you follow these simple steps […]
8 rare HTML tags you didn’t know existed
Here are 8 HTML tags you probably didn’t know. And I believe it’s a good idea to use some of the tags in your next project for a better User Experience and Google indexing. <abbr> tag The first is the <abbr> tag. The tag defines an abbreviation or an acronym, like “HTML”, “CSS”, “Mr.”, “Dr.”, […]
Add a custom body class to your (Custom) Post Type
There are many cases where you want to add a custom body class to your page, single post or custom post type. I’m here to show you some examples. By using the following code snippets, that you add to your functions.php, you can easily achieve that. The code above shows you how to add a […]
Simple ‘back to overview’ button with JavaScript
You’re probably here because you need a back button for your website and history.back(); just isn’t enough. But why use a button when you can use your browsers back button too. Well that’s easy. From A/B testing we noticed that every user has it’s own way to navigate your website. So it isn’t wrong to […]
Use WordPress shortcodes in navigation and (sidebar) widgets
You’re probably here because you noticed that your shortcode isn’t working, instead it’s just showing as text. No worries! This is by default. There is a quick fix for this. Imagine you want to show your related posts in the sidebar or social share icons in the navigation, or anything else that you created a […]
Create your own custom related posts for WordPress (No plugin)
Creating your own Related posts for WordPress custom post types or for your blog isn’t that hard. You can use my example code below to set it up. Before we start, I assume you already have experience with editing PHP and working with your WordPress child theme. Okay, let’s get started. First we open our […]
Add a Social Share popup to your WordPress blog (no plugin)
Having your posts shared on the web by your visitors is a good way to spread the word. In this tutorial I assume you already have a child theme set up and know how to edit your single post file. Go ahead and start editing the single.php in your child theme. Depending on your current […]