Puddinq.com sharing knowledge
';

Puddinq.com - blog

Compile sass in the new twentytwentyone theme – WorPress 5.6

Changing something in a theme build and maintained by somebody else is not recommended. But you know this, you will lose changes when you update. Despite that there might be good reasons for doing so experimenting, analyzing etc. If you want to make changes in the new twentytwentyone themes stylesheet you will want to change […]

Working with SVN in the WordPress repository

Most developers are familiar working with git. But once you have submitted your plugin to the WordPress repository and your plugin has been approved you can not ignore the fact you will have to work with SVN. Content of this article Tools used in this article First time adding your files Editing your files Commands […]

Regex cheatsheet

Links testing (link) negative lookbehind Find space not precede bij \ Dynamically replace countries with code

Change breakpoint in Homestore and Storefront

(not advisable setup) You can run in a payed child theme (Homestore) for Storefront. Changing styling in the stylesheets can be a nightmare. In a situation where you only want to change the breakpoints this script can help you. For general supplements to the styling it is advised to create a plugin that adds an […]

What should be the costs of a WordPress site?

While in the progress of writing your business plan for your website, underestimating the costs can be the result of using little or the wrong information. WordPress is based on an open source project and therefor has no direct costs. Assumptions based on the free entry setup can lead to serious project challenges. The costs […]

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. […]

Using isset() empty() and is_null()

Validating the input is very important, but you want te write lean code. So if you are in doubt about using !empty only, or !empty && isset here’s the difference: Value of variable ($var) isset($var) empty($var) is_null($var) “” (an empty string) bool(true) bool(true) bool(false) ” ” (space) bool(true) bool(false) bool(false) FALSE bool(true) bool(true) bool(false) TRUE […]

ACF code field - SyntaxHighlighter Evolved

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:

1 2 3 11