Skip to content

Replace Breadcrumbs with NavXT Breadcrumbs

Replace Breadcrumbs with NavXT Breadcrumbs

function myprefix_navxt_breadcrumbs() { // Breadcrumbs classes $classes = array( 'site-breadcrumbs', 'wpex-clr' ); // Add position $position = apply_filters( 'wpex_breadcrumbs_position', wpex_get_mod( 'breadcrumbs_position', 'absolute' ) ); $position = ( $position && 'default' != $position ) ? $position : 'absolute'; $classes[] = 'position-'…

Read more

Add Social Sharing On The Events Calendar Plugin Events

// Add social share to event hook // If you want to place in another hook locate your hook of choice: https://github.com/moderntribe/the-events-calendar/ add_action( 'tribe_events_after_html', 'wpex_social_share', 99 ); // Enable events social share function myprefix_enable_events_social_share( $bool ) { if ( is_singular(…

Read more

Multi-Post Thumbnails Plugin Usage Example

This is a guide for using the Multi-Post thumbnails plugin with Total. This will allow you to set a secondary image specifically for your entries so you can have one image for the entry and one for the post. Of…

Read more

Change Related Blog Posts To Be Based on Tags

/** * Alter single posts related section to display related items based on tags and NOT categories * * @urlhttp://totalwptheme.com/docs/snippets/related-blog-posts-based-tags/ * */ function myprefix_alter_related_posts_query_args( $args ) { // Remove category arguments $args['category__in'] = null; // Get post tags $tags =…

Read more

Define Google Font Weights To Be Enqueued

/** * Alter the font-weights to be loaded with your selected Google Fonts * as defined at Customizer > Typography * * @link http://totalwptheme.com/docs/snippets/google-font-weights/ * @see framework/fonts.php * @since 3.3.2 * * @return array */ function myprefix_wpex_google_font_enqueue_weights( $weights ) {…

Read more
Back To Top