Add a Favicon Icon to Genesis Child Theme in WordPress
…return ‘http://mydomain.com/images/favicon.ico’; } add_filter( ‘genesis_pre_load_favicon’, ‘genesischild_favicon’ ); The function is used with a variable and the variable is set to where the favicon is filed. To add another different Favicon…
Read MoreChanging the Customizer Values & Presets for the Beaver Builder Theme
Here is a quick way to override the active preset that comes with the Beaver Builder Theme in the Customizer. This may come in handy if you need to start…
Read MoreFlyout Overlay with CSS & Javascript
…Set the overlay height */ } /*! * Hamburgers * @description Tasty CSS-animated hamburgers * @author Jonathan Suh @jonsuh * @site https://jonsuh.com/hamburgers * @link https://github.com/jonsuh/hamburgers */ .hamburger { padding: 15px…
Read MoreCreate An ACF Repeater Bootstrap Accordion in WordPress
…many accordion fields as needed, assign the field group to a post or page and populate the repeater rows. Add the ACF Repeater Loop Bootstrap Accordion Code https://gist.github.com/neilgee/253b8e4dadeb01539fc5c1a6ff91c8c4#file-accordion-repeater-php Name Fred…
Read MoreAvoid Blank Square FontAwesome 5 Icons when used as CSS Pseudo Elements
…Add in the FontAwesome 5 CSS either via a wp_enqueue action or a CSS import. So in your functions.php add … wp_enqueue_style( ‘font-awesome-free’, ‘//use.fontawesome.com/releases/v5.15.3/css/all.css’ ); or in your style.css add…
Read MoreChange ‘You may also like’ and ‘You may be interested in’ WooCommerce text
…); /** * @snippet Trsnslate “You may also like…” Text – WooCommerce * @how-to Watch tutorial @ https://businessbloomer.com/?p=19055 * @sourcecode https://businessbloomer.com/?p=595 * @author Rodolfo Melogli * @testedwith WooCommerce 3.5.1 */…
Read MoreStyling Default Select DropDown Fields
…select2-init.js file in your js folder – so your structure will be… yourtheme/css/select2.min.cs yourtheme/js/select2.min.js yourtheme/js/select2-init.js Set Up Scripts in functions.php https://gist.github.com/neilgee/c1ad4088cad40d201bcd010c1268a314#file-functions-php Select the field to target https://gist.github.com/neilgee/c1ad4088cad40d201bcd010c1268a314#file-selectize-init-js In the…
Read MoreCreate a slider of WooCommerce Product Featured Images
…https://gist.github.com/neilgee/d26637f9123adcaa9fc6#file-slick-php Create the WooCommerce Loop https://gist.github.com/neilgee/b9dd5cbc8eb57e2b83712ea2d891303a For the WooCommerce loop, I am creating a shortcode so I can easily insert anywhere [[woo_featured_image]] That’s the bare bones of it, now a…
Read MoreAdd 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 More