Skip to content

Instantly share code, notes, and snippets.

View PluginRepublicSupport's full-sized avatar

PluginRepublicSupport

View GitHub Profile
@PluginRepublicSupport
PluginRepublicSupport / image_size.css
Created January 24, 2023 15:24
Elementor Lightbox Fullwidth
/** Increase image size in lightbox **/
.dialog-type-lightbox .dialog-widget-content{
width: 100%;
}
@PluginRepublicSupport
PluginRepublicSupport / woo_cart.php
Created January 24, 2023 14:24
WooCommerce Cart
<?php
/**
* Cart Page
*
* This template can be overridden by copying it to yourtheme/woocommerce/cart/cart.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
@PluginRepublicSupport
PluginRepublicSupport / disable_add_to_cart.php
Created January 24, 2023 13:36
Disable add-to-cart on WooCommerce shop/archive page
<?php
/**
* Disable the add to cart action
*/
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
/**
* Redirect to product page