Skip to content

Move Topbar Under Main Header

Move Topbar Under Main Header

function myprefix_move_topbar() { // Remove from wrap top remove_action( 'wpex_hook_wrap_top', 'wpex_top_bar', 5 ); // Re-add to header after hook add_action( 'wpex_hook_header_after', 'wpex_top_bar' ); } add_action( 'init', 'myprefix_move_topbar' );

Read more

Add Typography Options For Blog Content

function myprefix_wpex_typography_settings( $settings ) { $settings['blog_post_content'] = array( 'label' => esc_html__( 'Blog Post Content', 'total' ), 'target' => '.single-blog-article .entry', 'transport' => 'refresh', ); return $settings; } add_filter( 'wpex_typography_settings', 'myprefix_wpex_typography_settings' );

Read more

Change Portfolio Grid Filter To Use Tags Instead

// Use the portfolio_tag taxonomy for the filter on Total VC GRID module with a unique // ID of "my-custom-grid" add_filter( 'vcex_filter_taxonomy', function( $tax, $atts ) { if ( 'my-custom-grid' == $atts['unique_id'] ) { $tax = 'portfolio_tag'; } return $tax;…

Read more

Conditionally Alter Portfolio Grid Module Readmore Link

function myprefix_vcex_shortcode_loop_atts( $atts ) { // Target portfolio grid if ( isset( $atts['base'] ) && 'vcex_portfolio_grid' == $atts['base'] ) { $atts['readmore_link'] = 'http://www.wpexplorer.com/'; } // very important return $atts; } add_filter( 'vcex_shortcode_loop_atts', 'myprefix_vcex_shortcode_loop_atts' );

Read more

Conditionally Alter Portfolio Post Grid Links

function myprefix_vcex_shortcode_loop_atts( $atts ) { // Target portfolio grid if ( isset( $atts['base'] ) && 'vcex_portfolio_grid' == $atts['base'] ) { $atts['post_permalink'] = 'http://www.wpexplorer.com/'; } // very important return $atts; } add_filter( 'vcex_shortcode_loop_atts', 'myprefix_vcex_shortcode_loop_atts' );

Read more

Enable Post Series For Custom Post Type

/** * Register the post series taxonomy for other post types. * * This function register the taxonomy so you can now start using it, however it won't * display the actual post series on the front-end, for that I…

Read more
Back To Top