Compiling scss in PhpStorm for your wordpress theme (windows)

In the beginning of working with sccs I used gulp in the commandline to manually run a gulp file, or used screen to haveĀ  a process running continuesly while using my console for aither things like wp cli. But I have switched, and now with pleasure I am using PhpStorm to do it for me. […]

syntaxhighlighter evolved

ACF code field – SyntaxHighlighter Evolved

In this new project I wanted to hav an ACF repeater field with the SyntaxHighlighter Evolved code block in it. The code would not render anyway I tried to output it in my template. I have had a look in the ‘SyntaxHighlighter Evolved code’ plugin and found there were three hooks (saving, calling and rendering) […]

WordPress – Can not activate theme

When you have installed your theme, and you can see it under appearance, but you can not activate it. There is a good chance your setup does not meet the requirements. The buttons will show like: Your theme will have requirements, specified in the style.css for your theme. If your setup (php, WordPress) does not […]

WordPress CPT drop permalink prefix

When you create a custom post type, the url us prefixed with the post type name or slug, you can remove that on the output:

Display WooCommerce search results in FacetWP page

To make the search results appear on your facet page, add a search facet to the page and then just add these to your functions.php: YOUR_FACET_SEARCH_WIDGET_NAME – with the name of your facet YOUR_RESULT_PAGE – with the slug of you facet page The same thing can be done for the normal WordPress search form

Remove /feed/ from url

Somehow your site git indexed with the feed url’s and even worse when the url does not excists in google anymore, google gives you two errors. One for the url and one for the same link with /feed/ behind it. To solve this you can use two actions. One: remove the feed from wh-head This […]

WooCommerce add attribute to multiple products (programmatically)

This snippets was used in, I needed to adjust an import and add colors found in the title as attributes. I had imported the products and wanted to extract a word from the title to add as attribute in the product. I used a shortcode because I wanted to visualisy the products I was […]

Hide userprofile fields like facebook url – in edit profile

When you give access to the backend for minimal users, you will want te reduce the available options to make it more easy. One thing is the edit user profile where there are a lot of unused options. By adding (or removing) classes in the list you can hide the fields. Find the class associated […]

WooCommerce Checkout require number if not ‘local pickup’

In the Netherlands WooCommerce removed the second address line. This made the error rate for people failing to insert the housenumber rise. I had two options, put the second line back and make it rweuired, or check if the one line that is there has a number in it..