YOUR ONLINE RESOURCE FOR CODING HELP AND TUTORIALS.

 

Latest WordPress Posts:

Disable Gutenberg for specific post types

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 Gutenberg

function 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' );

Latest CSS Post:

CSS Tip: How To Vertical Align One Div Inside Another

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.

 

Latest HTML Post:

WordPress: Wrap the published day, month, and year in span tags

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.

Latest Javascript Post:

jQuery Tip: Scroll to the top of active accordion items whenever a new item is expanded (with the option to account for a fixed header)

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…

Latest jQuery Post:

jQuery Tip: Scroll to the top of active accordion items whenever a new item is expanded (with the option to account for a fixed header)

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…

Latest PHP Post:

WordPress: Wrap the published day, month, and year in span tags

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.

Latest Random Post:

Configuring BitBucket pipelines for deploying to FTP site

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…