Puddinq.com sharing knowledge

Change breakpoint in Homestore and Storefront

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

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

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

Generate sourcemaps in twentynineteen for style.css

If you dived into ‘How to compile WordPress 5.0 twentynineteen sass files you might mis the sourcemaps for the style.css. The sourcemaps are not generated by any of the commands without a small adjustment. “scripts”: { “build:style”: “node-sass style.scss style.css –source-map true –output-style expanded && postcss -r style.css”, “build:style-editor”: “node-sass style-editor.scss style-editor.css –output-style expanded && […]

Compile WordPress twentytwenty sass files

WordPress 5.0 is out! and it does not only come with Gutenberg but also with the new theme twentytwenty theme for WordPress. The theme is brilliant in its simplicity but that does not bring much elegance. So what if you want to change the styling? enhance or expand it? How would you start?. There are […]

jQuery Autocomplete with Wordpress

Assuming you know something about plugin development, I want to share a piece using jQuery autocomplete the WordPress way. Ajax calls have been around and jQuery autocomplete has been, but you do not see them as much together in examples the WordPress way.

Enqueue child style after parent style

There are a number of possibilities for adding the child theme styles after the parent style sheet so you can overrule parent styles from the child theme. this one is easy, copy the code to your functions.php and it will work.

wp test content

wp test is een xml import met een variatie van gebruikers pages en posts om een thema te testen wptest.io github Wp test is useful to populate pages, posts and users with dummy data. Sometimes when working on a project you need content to see shape. wordpress plugin fakerpress fakerpress is a plugin that can […]

Wordpress Select template to render query in wordpress

Sometimes you want to use one archive template for different situations. In wordpress select a template by using the ‘template_include‘ filter. You have to use the function ‘locate_template()‘  to set the template. This is if you want to stray from the normal way wordpress enables you to select a template. WordPress lets you create page […]