Skip to content

Add Custom Icon Font Family To Icon Box

Add Custom Icon Font Family To Icon Box

This is no longer necessary! You can now use the theme’s “Custom” button to upload and select any SVG for your icon. While it’s still technically possible to register and use your own font family, it’s not recommended. SVGs are…

Read more

Replace WooCommerce Product Entry Link With Affiliate Link

// Remove default link around product entries remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 ); // Re-add links and check for affiliate link function myprefix_woocommerce_template_loop_product_link_open() { $affiliate_link = get_post_meta( get_the_ID(), '_product_url', true ); if ( $affiliate_link ) { echo ''; } else {…

Read more

Add More Column Choices To Grid Modules

// This function will add the column selections you will then have to add your custom CSS // for the actual column. Example '.span_1_of_8{ width: 12.5%; }' add_filter( 'wpex_grid_columns', function( $columns ) { $columns['8'] = '8'; $columns['9'] = '9'; $columns['10']…

Read more

Open Portfolio Items With Custom Links in Portfolio Grid in New Tab

function myprefix_vcex_shortcode_loop_atts( $atts ) { // Target portfolio grid if ( isset( $atts['base'] ) && 'vcex_portfolio_grid' == $atts['base'] && get_post_meta( get_the_ID(), 'wpex_post_link', true ) ) { $atts['link_target'] = 'blank'; } // very important return $atts; } add_filter( 'vcex_shortcode_loop_atts', 'myprefix_vcex_shortcode_loop_atts' );

Read more

Add Custom Gap Options

function myprefix_wpex_column_gaps( $gaps ) { $gaps['3'] = '3px'; return $gaps; } add_filter( 'wpex_column_gaps', 'myprefix_wpex_column_gaps' );

Read more

Display Menu Descriptions in Main Menu

add_filter( 'walker_nav_menu_start_el', function( $item_output, $item, $depth, $args ) { if ( 'main_menu' == $args->theme_location && $item->description ) { $item_output = str_replace( '', '' . $item->description . '', $item_output ); } return $item_output; }, 10, 4 );

Read more

Add Content Between Grid Filter & Grid

// Use the $atts variable to check your current module attributes and display content accordingly // Also you can use WP_Query to display content from any page/post function myprefix_after_filter_content( $content, $atts ) { $content = 'YOUR CUSTOM CONTENT HERE'; return…

Read more
Back To Top