Author: Antik Mozib

Featured image

WordPress – Showing cookie consent in comments

WordPress has a neat feature that allows visitors to save their details in the browser when commenting. This prevents repeated typing fatigue.

However, this option might not show up under the comments – even if the option is checked in the Admin settings page.

More →

Featured image

What I Use – January 2019

My toolset hasn’t changed much over the last couple of years. This is mainly because my existing PC seems to be holding up quite well, despite its age.

More →

WordPress – Fixing issues with comment form not moving

Sometimes, you might notice the comment form not moving underneath a comment as expected. I had a similar bug in one of my themes. I used the same functions and structures in two themes, but one had the comment form working properly, whereas in the other the comment form wasn’t moving. After spending hours trying to identify the reason and the bug, I found the solution to be ridiculously simple.

More →

jQuery – Fixing HTML anchor tags with fixed navbars

You may have noticed that your HTML # anchor tags no longer line up properly if you have a fixed navbar. It’s easily fixable with some simple jQuery.

More →

Featured image

SSH command cheatsheet

I find myself frequently using SSH to perform commands that otherwise take painfully long over regular FTP. I keep the following cheatsheet nearby to help me out.

More →

Featured image

Bootstrap – Dealing with ‘File to import not found or unreadable’

When importing Bootstrap files into your own sass, you might encounter this pesky error that might leave you scratching your head.

More →

Featured image

WordPress – Moving all scripts from header to footer

It is a recommended practice to link all your JavaScript files towards the bottom of your web page, just before the closing </body> tag.

To do this in WordPress, just insert the following code anywhere in your theme’s functions.php file.

More →

WordPress – Showing a reply link under every comment

This post will show you how to enable replies to all comments, irrespective of their depth.

More →

Featured image

PHP – Creating a one-page contact form

Today, I’ll show you how to build a contact form easily with PHP. Moreover, all user inputs and data processing will be done on the same php file. No need to create a separate mailer or responder file.

More →

Featured image

InnoSetup – Auto download the .NET Framework

Call me what you like but I love InnoSetup. Its simplicity and ease-of-use are unparalleled. However, using it to distribute .NET apps is not straightforward as you also need to include the .NET Framework if you’re targeting older versions of Windows. The situation is exacerbated by Microsoft’s insistence on using the Windows Installer technology to distribute .NET apps. I find Windows Installer to be quite ambiguous for end-users, especially when distributing smaller apps.

So, I went off writing a function for InnoSetup that checks if the appropriate version of the .NET Framework is installed. If it isn’t, it will automatically download and install the required version from Microsoft’s own servers.

More →