Add Background Image to Footer Widgets
body #footer { background: url(YOUR_IMAGE_URL) repeat; }
body #footer { background: url(YOUR_IMAGE_URL) repeat; }
Basically the way the pageable containers work is by hiding whatever is inside the non-active tabs. Certain players like jwplayer can not properly render the media if it's hidden by default. The following CSS will display all your tabs by…
WooCommerce thumbnails are used by default for the category grid/listing. Because of this it’s not used as the title backgrounds by default, however, it can be enabled via a child theme function.
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…
// 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 {…
// 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']…
function myprefix_remove_http_from_logo_url( $url ) { if ( $url ) { $disallowed = array( 'http:', 'https:' ); foreach( $disallowed as $d ) { if ( strpos( $url, $d ) === 0 ) { return str_replace( $d, '', $url ); } }…
If you want to create a custom style you can apply to text, buttons or lists while writing blog posts it's a good idea to insert this into the Formats dropdown for easy access. This snippet shows you how you…
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' );
// Remove title from page header (keeps breadcrumbs) add_filter( 'totaltheme/page/header/has_title', '__return_false' );