Add WooCommerce add to cart button and quantity field to Shop archive page
…$html, $product ) { if ( is_user_logged_in() && is_shop() && $product && $product->is_type( ‘simple’ ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) { $html = ‘<form action=”‘ . esc_url(…
Read MoreHow to Add Web Fonts to Beaver Builder Plugin and Theme
…in your theme folder. Then add in via enqueuing… https://gist.github.com/neilgee/b70262f6ff2f9b0c1774dbebb6c8c91c#file-enqueue-php Once enqueued add for the Beaver Builder modules in via fl_builder_font_families_system filter… https://gist.github.com/neilgee/b70262f6ff2f9b0c1774dbebb6c8c91c#file-fonts-php Just repeat the formatting as above…
Read MoreFilter WooCommerce Order Received Thank You Text
…which you can do using the filter woocommerce_thankyou_order_received_text https://gist.github.com/neilgee/a570907ec8bb4d54741f#file-order-received-append-replace-php Above the original text is being replaced. Or below the original text is being retained with some new text added. https://gist.github.com/neilgee/a570907ec8bb4d54741f#file-order-received-append-php…
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 MoreChange WooCommerce Price to be by Weight
…Muzammil Abbas how to apply to a specific category? Neil Gowran You can wrap the function with a WooCommerce conditional – https://docs.woocommerce.com/document/conditional-tags/#section-5 LeSScro Really appreciate. THX. ciro HI .. I…
Read MoreHide the Description and Reviews Tabs in WooCommerce Products
…’woocommerce_product_tabs’, ‘woo_delete_tabs’, 98 ); function woo_delete_tabs( $tabs ) { … } Neil Gowran You unset as per first code snippet – https://gist.github.com/neilgee/e82abb3ec22bbdacf27b#file-remove-tabs-php Spencer Thank you! I am using the Divi…
Read MoreRemove Archive Title & Description from Blog Page in Genesis
…file, so in your case this is the sample theme, just adding it in at the end is fine – it works I have tested – perhaps this is not…
Read MoreChange, Edit & Rename WooCommerce Endpoints in My Accounts Page
…* * @since 2.6.0 * @return array */ function wc_get_account_menu_items() { return apply_filters( ‘woocommerce_account_menu_items’, array( ‘dashboard’ => __( ‘Dashboard’, ‘woocommerce’ ), ‘orders’ => __( ‘Orders’, ‘woocommerce’ ), ‘downloads’ => __(…
Read MoreGet PHP and Shortcode to Work in WordPress Widgets
…// Use shortcode in a native PHP file <?php echo do_shortcode(‘http:myvideo.com’); ?> If the code is to be inserted inbetween HTML make sure you keep the PHP opening and closing…
Read MoreRemove WordPress Backend Dashboard Widgets
…or start it with a comment // – each widget is described of what it is at the end of the line in last comment. And voila…. The emptiness…
Read More