Set Up Let’s Encrypt SSL on cPanel WHM Server
The free SSL service Let’s Encrypt is now available to use on a cPanel/WHM service for versions above 58.0.17, this was announced recently on the feature requests component of the…
Read MoreSocialising your Author Box in Genesis WordPress Theme
…so they are not all added in – perhaps look at the full gist of code and try and work from that – https://gist.githubusercontent.com/neilgee/9ccec99d08176ca4998d/raw/3b11be36512c945fc37e3a34b0857bc900304f89/aauthorbox.php amd Hello, thanks very much for…
Read MoreSet WooCommerce cart product count total to be divisible by number
…checkout. add_action( ‘woocommerce_check_cart_items’, ‘check_cart_items_conditionally’ ); /** * Check cart items conditionally displaying an error notice and avoiding checkout * @link https://stackoverflow.com/questions/65767078/disable-woocommerce-checkout-if-cart-items-count-is-not-a-multiple-of-n */ function check_cart_items_conditionally() { $multiple_of = 6; // <=…
Read MoreSort WooCommerce products from product category to be last in cart order
…WC()->cart->cart_contents = array_merge( $other_items, $items_in_category ); } Above example uses ‘box’ as a product category, to re-arrange the order swap the arrays in array_merge. WC()->cart->cart_contents = array_merge( $items_in_category, $other_items );…
Read MoreSort WooCommerce products in cart order by price
…back in cart $cart_contents = array(); foreach ( $products_in_cart as $cart_key => $price ) { $cart_contents[ $cart_key ] = WC()->cart->cart_contents[ $cart_key ]; } WC()->cart->cart_contents = $cart_contents; } The above will…
Read MoreCoding a Slider with Slick and ACF Pro in WordPress
…I have another tutorial that covers the Multiple Layout. Getting Slick in order Download the latest Slick version. Move into your CSS directory – slick.css, slick-theme.css, fonts, ajax-loader.gif Move into…
Read MoreMaking Custom Social Media Images for Share Links in WordPress
…which use 2 key parameters illustrated in the example using square brackets[] which are Title and URL of the post or page in question: Facebook http://www.facebook.com/share.php?u=[URL]&title=[TITLE] Google https://plus.google.com/share?url=[URL] Twitter http://twitter.com/home?status=[TITLE]+[URL]…
Read MoreChanging the Microdata Schema in Genesis WordPress
…structure for search engines to understand the page and extract certain data to present to searchers. How Google displays search data to searchers is constantly changing which makes it even…
Read MoreSet monit to monitor mariadb on a RunCloud instance on Ubuntu 22.04
…the server and allow admin:password # require user ‘admin’ with password ‘password’ Restart monit: systemctl restart monit Now you can view via a browser, use your server IP and 2812…
Read MoreAdding Cloudflare to the mix of ServerPilot and fail2ban
…latest one on github from fail2ban 0.11.2 works fine. https://gist.github.com/neilgee/9e89fced25ee515876dee125758330a4 You just rename/backup the old cloudflare.conf and add in the new one above and add in your Cloudflare username/email and…
Read More