Adding in a Responsive HTML Logo/Image Header via the Customizer for Genesis
…using a CSS background lets use some HTML markup which contains the image element. We can pinch the mark up from Underscores. In _s/inc/custom-header.php lines 7-11 So we can add…
Read MoreCreate a content flyout overlay in Beaver Themer Layout Header
…any BB module available. Attached at the end is also the template file which you can directly import with all the code. https://gfycat.com/SnoopyBossyBittern Create a Beaver Themer header layout…
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 MoreFilter WooCommerce orders by payment gateway
…will see a column that allows you to choose a payment gateway and then filter the orders to show only those that have been paid via the gateway. https://gist.github.com/neilgee/8b4c3a3fa91d7e74b7fbde04e4e94fce…
Read MoreRedirect a Custom Post Type’s Single and Archive Pages in WordPress
…are outputting a custom loop of CPTs and don’t want duplicate content or discoverable pages which you don’t want published. https://gist.github.com/neilgee/8926914#file-cpt-hide-php In the above gist in the $args, ‘has_archive‘ is…
Read MoreRename Home name and link in WooCommerce Breadcrumbs
…Change WooCommerce Home URL in Breadcrumb For the URL… add_filter( ‘woocommerce_breadcrumb_home_url’, ‘prefix_custom_breadrumb_home_url’ ); /** * Replace the home link URL in WooCommerce breadcrumb */ function prefix_custom_breadrumb_home_url() { return ‘https://example.com.au/mynew-url/’; }…
Read MoreAnchor Link Offset to Other Pages with Fixed Header Size
…appears further down below the header of further down the page. The code snippet is documented. https://gist.github.com/neilgee/322e06c3e9dea0cc7d41bb70f2736989 If you know the pixel dimensions instead you can add the number as…
Read MoreShow only free shipping option on WooCommerce cart and checkout pages
…shipping is available. * Updated to support WooCommerce 2.6 Shipping Zones. * * @param array $rates Array of rates found for the package. * @return array * @link https://docs.woocommerce.com/document/hide-other-shipping-methods-when-free-shipping-is-available/ */…
Read MoreChange WooCommerce SKU text to another label
You can change WooCommerce SKU text to another label using the gettext filter add_filter(‘gettext’, ‘translate_woocommerce’, 10, 3); /** * Change SKU Label * @link https://gist.github.com/dannyconnolly/da6f1a2d95dc826ccdcd * @since 1.0.0 */ function…
Read More