add_filter('use_block_editor_for_post_type', 'prefix_disable_gutenberg', 10, 2); function prefix_disable_gutenberg($current_status, $post_type) { if ( ($post_type === 'post') || ($post_type === 'event') ) return false; return $current_status; }
How to remove the custom color picker from Gutenbergfunction prefix_gutenberg_disable_all_colors() { add_theme_support( 'editor-color-palette' ); add_theme_support( 'disable-custom-colors' ); } add_action( 'after_setup_theme', 'prefix_gutenberg_disable_all_colors' );
Here is the handy CSS code you can use to vertically align one div inside a parent div: I found this code on this StackOverflow answer.
Here is a quick and easy way to wrap the individual elements of your WordPress template’s published date output in tags: Note: the key is to escape the each letter of the tag declaration with a back slash.
Here is a really handy tip on how to add functionality for a user to be scrolled to the top of the currently active accordion item whenever a new accordion item is expanded. The key here, and the one that I have spent more hours than I care to remember trying to figure out, is Read more…
Here is a really handy tip on how to add functionality for a user to be scrolled to the top of the currently active accordion item whenever a new accordion item is expanded. The key here, and the one that I have spent more hours than I care to remember trying to figure out, is Read more…
Here is a quick and easy way to wrap the individual elements of your WordPress template’s published date output in tags: Note: the key is to escape the each letter of the tag declaration with a back slash.
This is the code I have used in my bitbucket-pipelines.yml file to successfully deploy a BitBucket repo to my server using FTP: pipelines: default: – step: script: – apt-get update – apt-get -qq install git-ftp – git ftp init –user $FTP_USERNAME –passwd $FTP_PASSWORD ftp://YOUR_WEBSITE_URL Note: after the first commit, change the last line to: – Read more…