Tag functions.php

Allow PHP in WordPress default text widget

The default text widget in WordPress only supports HTML. You can extend the functionality of the text widget by making it possible to execute PHP. Put this code in the functions.php of the theme you are using: add_filter(‘widget_text’, ‘php_text’, 99); function…

Turn off WordPress emojis

Support of emojis are standard ever since version 4.2 of WordPress. Which is nice. But when you don’t need this, it only puts extra time to the page load and still does nothing. WordPress doesn’t have an option to turn…

Useful pieces of code

With plugins it’s very easy to expand the functionality of a WordPress website. On the frontend as well as the backend. Plugins can make your life as site owner a lot easier. Especially when your not very technical. Tens of…