Category: Archive
Display WPForm Entries
/** * Custom shortcode to display WPForms form entries in table view. * * Basic usage: [wpforms_entries_table id=”FORMID”]. * * Possible shortcode attributes: * id (required) Form ID of which to show entries. * user User ID, or “current” to…Continue reading
Scroll Progress Bar
add_action(‘wp_body_open’, function() { echo ‘ ‘; }); add_action(‘wp_head’, function() { echo ‘ ‘; }); add_action(‘wp_footer’, function() { echo ‘‘; });Continue reading
Shortcode to Get the Post Date [post_date]
// Shortcode to get post date function g9_get_post_date() { return ‘‘ . get_the_date() . ‘‘; } add_shortcode(‘post_date’, ‘g9_get_post_date’);Continue reading
Show Products Count on WooCommerce Archive Pages
add_shortcode( ‘product_count’, ‘product_count_shortcode’ ); function product_count_shortcode() { global $wp_query; $total_product_count = $wp_query->found_posts; $current_page = max( 1, get_query_var( ‘paged’ ) ); $products_per_page = get_option( ‘posts_per_page’ ); $start_product = ( ( $current_page – 1 ) * $products_per_page ) + 1; $end_product =…Continue reading
Arata o reclama dupa un anumit paragraf
Phoenix – Featured Neighborhoods add-on
/* Featured Neighborhood add-on – Style: Grid with CTA on side (Phoenix) == Start */ .iul_display_grid_1{display:table;width:100%;} .iul_display_grid_cell a img{margin-bottom:0;} .iul_display_grid_cell{display:table-cell;vertical-align:middle;} .iul_display_grid_cell h2 {color:#fff;color:var(–main-primary-color-text-light);} .iul_display_grid_cell:nth-child(1){background-color:#111;background-color:var(–main-primary-color);width:25%;text-align:center;color:#ffffff;color:var(–main-primary-color-text-light);padding:30px 20px;} .iul_display_grid_cell:nth-child(2){width:75%;} .iul_display_grid_cell:nth-child(1) .cta_button{padding:5px 30px;margin:0;border:1px solid #fff;border-color: var(–main-primary-color-text-light); color:#fff;color:var(–main-primary-color-text-light);font-size:16px;border-radius:0px;display:inline-block;text-decoration:none;} .iul_display_grid_1 .ao_fn_gs_gridstandard { display: -ms-grid; display: grid;…Continue reading
Woocommerce category archive sort products by date by default
add_filter(‘woocommerce_default_catalog_orderby’, ‘quadlayers_catalog_orderby_for_category’); function quadlayers_catalog_orderby_for_category( $sort_by ) { if( !is_product_category(‘gramatas’) ) { return $sort_by; // modify gramatas category archive sorting } return ‘date’; }Continue reading
contribution
Set Header Menu as “Custom”
add_filter( ‘totaltheme/header/menu/is_custom’, ‘__return_true’ );Continue reading