Skip to content

Open all portfolio entry links in a blank tab

Open all portfolio entry links in a blank tab

// There isn't a function built-in for this for many reasons, but it can be done with javascript like the example below: function wpex_add_target_blank_to_portfolio_entries() { ?> ( function( $ ) { 'use strict'; $(document).ready(function() { $('.portfolio-entry a').attr( 'target', '_blank' );…

Read more

Add “nocookie” To WordPress oEmbeded Youtube Videos

// Add "nocookie" To WordPress oEmbeded Youtube Videos function wpex_youtube_nocookie_oembed( $return ) { $return = str_replace( 'youtube', 'youtube-nocookie', $return ); return $return; } add_filter( 'oembed_dataparse', 'wpex_youtube_nocookie_oembed' );

Read more

Display Header Aside On Mobile Devices

/* Display Header Aside On Mobile Devices */ @media only screen and (max-width: 959px) { body #header-aside { display: block !important; float: none; text-align: left; margin-top: 20px; } body #header-two-search { float: none; } }

Read more

Portfolio Category Description Above Loop

function my_portfolio_category_description_above_loop( $bool ) { if ( is_tax( 'portfolio_category' ) ) { return true; } return $bool; } add_filter( 'wpex_has_term_description_above_loop', 'my_portfolio_category_description_above_loop' );

Read more

Staff Category Description Above Loop

function my_staff_tax_description_above_loop( $bool ) { if ( is_tax( 'staff_category' ) ) { return true; } return $bool; } add_filter( 'wpex_has_term_description_above_loop', 'my_staff_tax_description_above_loop' );

Read more
Back To Top