Skip to content

Instantly share code, notes, and snippets.

View WebMatPro's full-sized avatar

Mat WebMatPro

View GitHub Profile
@WebMatPro
WebMatPro / functions.php
Created November 7, 2020 09:48 — forked from softiconic/functions.php
Creating a new widget using theme function - Elementor page builder plugin
//Elementor Function Code
class ElementorCustomElement
{
private static $instance = null;
public static function get_instance()
{
if (!self::$instance)
self::$instance = new self;
return self::$instance;
}
@softiconic
softiconic / functions.php
Last active December 2, 2023 19:01
Develop a new widget using the theme function with the Elementor page builder plugin.
//Elementor Function Code
class ElementorCustomElement
{
private static $instance = null;
public static function get_instance()
{
if (!self::$instance)
self::$instance = new self;
return self::$instance;
}
@ciorici
ciorici / index.php
Created April 27, 2017 08:10
Featured Products Loop in WooCommerce 3.0
<ul class="products">
<?php
$args = array(
'post_type' => 'product',
'posts_per_page' => 12,
'tax_query' => array(
array(
'taxonomy' => 'product_visibility',
'field' => 'name',
'terms' => 'featured',
@danfisher85
danfisher85 / woo-pagination-arrows.php
Created October 30, 2015 20:13
Change arrows for pagination (woocommerce)
<?php
add_filter( 'woocommerce_pagination_args', 'rocket_woo_pagination' );
function rocket_woo_pagination( $args ) {
$args['prev_text'] = '<i class="fa fa-angle-left"></i>';
$args['next_text'] = '<i class="fa fa-angle-right"></i>';
return $args;
}