Add Javascript and CSS files to the Head and Footer in WordPress
…add_action( ‘wp_enqueue_scripts’, ‘mythemename_all_scriptsandstyles’ ); So by registering the script with wp_register_script(), you pass in 5 arguments separated by commas, 2 of which are compulsory for it to work: the name…
Read MoreSet hostname and fqdn in Ubuntu 18.04 & 20.04 & 22.04
…command on its own it will tell you what the current name is, the example below is named racknerd-la hostnamectl root@racknerd-la:~# hostnamectl Static hostname: racknerd-la Icon name: computer-vm Chassis: vm…
Read MoreCreate an ACF Repeater Loop of Bootstrap Modals in WordPress
…uses 3 basic fields, assign the field group to a post or page and populate the repeater rows. Add the ACF Loop Code https://gist.github.com/neilgee/1a86f48b57d7717f57a5624bfeb0c0da#file-while-acf-modal-loop-php Open modal 1 Modal 1…
Read MoreAdding in Google Plus Authorship and Publisher Profile to Genesis WordPress Theme
…tag with the rel=”author” or in the case of a Google+ Business page rel=”publisher” attribute set. Like so: <link rel=”author” href=”https://plus.google.com/100574451041083020591“/> or <link rel=”publisher” href=”https://plus.google.com/100574451041083020591“/> You may also have or…
Read MoreDisplaying Featured Products in WooCommerce
…WooCommerce Featured Products via a custom loop like so: https://gist.github.com/40ac51e005dc53e5752e4dcb7d27e26b#file-custom-loop-php Above I am creating a loop with an infinite amount of featured products by setting the value ‘-1’ to the…
Read MoreCreate and Add Custom Taxonomy to WordPress Posts
…in /wp-content/plugins either as a standalone .php file or structured inside a directory. <?php /* Plugin Name: WP Beaches Taxonomies Plugin URI: http://wpbeaces.com/ Description: WP Beaches Custom Taxonomies Author: Neil…
Read MoreCreate a Loop of Bootstrap 4 Tabs in WordPress with ACF Repeater
…page and populate the repeater rows. Add the ACF Loop Code https://gist.github.com/neilgee/d6e8e8bb8d40032724a4b5a8ad7893f3#file-bootstrap-tab-loops-php Blue Hats Red Green Black Pink White Blue – Pellentesque habitant morbi tristique senectus et netus et malesuada…
Read MoreAdd Lets Encrypt SSL Certs on ServerPilot Free Plan
…and renew the SSL certs with a custom script. You need to be comfortable in the command line and be aware that ServerPilot will not offer support if you run…
Read MoreChange @WordPress from email address and from name sent out from website
…email address function prefix_email_from( $new_email ) { return ‘admin@newadress.com‘; // Change email address } add_filter(‘wp_mail_from_name’, ‘prefix_name_from’); // Change default WordPress from name function prefix_name_from( $new_name ) { return ‘Company Name’;…
Read MoreAdd a Manual Warm Up Cache / Cache Crawler to LiteSpeed Cache
…then its infrequent visitors will experience a slower page generation as the cache is not fully utilised because it is an initial view. Cache plugins can get around this by…
Read More