Add an Alpha RGBa Color Picker to a WordPress Plugin Input Field
…wp-color-picker. https://gist.github.com/neilgee/8917f0f4d120038051c158d9b667e848#file-rgba-php You also need a jQuery init script to act on the color-picker CSS class, create a file wp-color-picker-init.js and add the selector : https://gist.github.com/neilgee/8917f0f4d120038051c158d9b667e848#file-wp-color-picker-init-js Adding the Alpha Attribute…
Read MoreAdd Link Tag to Whole Column in Beaver Builder Layout
…zero padding, that’s set in the CSS. Give each column a generic and unique class – ie link-col and link-col-1, link-col and link-col-2 etc Add jQuery https://gist.github.com/neilgee/89b7a769e707a77c0d42de0c957b5084#file-col-link-js In the above-commented…
Read MoreSticking An Element To The Top Of The Browser After Scroll
…both minified JS file from the latest WayPoint release: jquery.waypoints.min.js sticky.min.js Enqueue the Scripts https://gist.github.com/neilgee/69738b40563ac6753d2946dbb50e4ed2#file-functions-php Enqueue the scripts along with a firing script it is important that these are loaded…
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 MoreRemotely connect to Amazon S3 Bucket from the macOS command line
…Key: XXX Secret Key: XXX Default Region: Asia Pacific S3 Endpoint: s3.amazonaws.com DNS-style bucket+hostname:port template for accessing a bucket: %(bucket)s.s3.amazonaws.com Encryption password: XXX Path to GPG program: /usr/local/bin/gpg Use HTTPS…
Read MoreSort WooCommerce products in cart order by price
By default the WooCommerce cart is ordered by when products are ordered in sequence, this can be manipulated with the woocommerce_cart_loaded_from_session hook. A new array is created $products_in_cart and the…
Read MoreAdd WooCommerce Product Category Dropdown to Shop & Archive Pages
…main shop area just below the headline, in essence you create a new widget and position it below the WooCommerce page title. https://gist.github.com/neilgee/7a4dc9590bce058285b7f7c2b6e0e9d4 So in the above code which goes…
Read MoreAdd WordPress Admin Account to Database wp_users Table
Here is a guide on how you can add in a newWordPress admin account username and password to the database. What you do need to do this have access to…
Read MoreWooCommerce cart total count minus certain product category
…to purchase many products within that, I have used this plugin for creating the composite product https://docs.yithemes.com/yith-composite-products-for-woocommerce/premium-version-settings/yith-woocommerce-product-add-ons/ So, the main issue is whenever I add a product to cart the…
Read MoreChange the Intro Text on My Account Page in WooCommerce
…this new folder take precedence over the original? you leave the original alone but edit this new one, and woocommerce uses this code now instead? Why? I think readers are…
Read More