Add Custom Gap Options
function myprefix_wpex_column_gaps( $gaps ) { $gaps['3'] = '3px'; return $gaps; } add_filter( 'wpex_column_gaps', 'myprefix_wpex_column_gaps' );
function myprefix_wpex_column_gaps( $gaps ) { $gaps['3'] = '3px'; return $gaps; } add_filter( 'wpex_column_gaps', 'myprefix_wpex_column_gaps' );
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 );
// 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…
If you find that the browser is caching your child theme so people don't see your live edits you can add some code to your child theme to add the version number from your child theme to the script query…
// This is just an example...you will probably want to adjust to also check for the current page or other // conditionals based on where your slider is located. function my_polylang_slider( $slider ) { if ( function_exists( 'pll_current_language' ) )…
/** * Alter the fixed header logo dynamically * * IMPORTANT: You page must have a default logo defined for "non-fixed" header in order * for it to display a logo on the fixed header. */ function myprefix_fixed_header_logo( $logo )…
function myprefix_redirect_after_login_fail( $username ) { // Check submission referrer $referrer = wp_get_referer(); // If referrer is valid and it's not the default log-in screen redirect if ( ! empty( $referrer ) && ! strstr( $referrer, 'wp-login' ) && ! strstr(…
/* Simply add this custom CSS to the site to fix the issues with the Lazy Load for Videos Plugin */ .wpb_video_widget .wpb_video_wrapper, .responsive-video-wrap, .responsive-audio-wrap { padding: 0 !important; position: static !important; } .wpb_video_widget .wpb_wrapper iframe, .responsive-video-wrap iframe, .responsive-audio-wrap iframe,…
function myprefix_related_portfolio_query( $args ) { // Change order from random to date $args['orderby'] = 'date'; // Return args return $args; } add_filter( 'wpex_related_portfolio_args', 'myprefix_related_portfolio_query' );