Skip to content

Display Page Title Above Content

Display Page Title Above Content

This snippet allows you to automatically display the page title inside the content instead of the header area. If you wish to remove the header area completely or remove the title from the page header area we have snippets for…

Read more

Alter The Related Portfolio Entry Thumbnail Size

// Alter the related portfolio thumbnail size function my_portfolio_entry_thumbnail_args( $args ) { if ( is_singular() ) { $args['size'] = 'wpex_custom'; $args['width'] = 50; // Enter the width you want $args['height'] = 100; // Enter the height you want } return…

Read more

Re-Order Staff Social Links

// Re-order your staff links (move the array items around to your liking) function my_staff_social_array( $profiles ) { // Return profiles return array( 'twitter' => array ( 'key' => 'twitter', 'meta' => 'wpex_staff_twitter', 'icon_class' => 'ticon ticon-twitter', 'label' => 'Twitter',…

Read more

Move Next/Previous Links To The Top Of Posts

function my_move_next_prev() { // Remove them from the bottom remove_action( 'wpex_hook_main_bottom', 'wpex_next_prev' ); // Add them to the top add_action( 'wpex_hook_main_top', 'wpex_next_prev' ); } add_action( 'init', 'my_move_next_prev' );

Read more

Set Default Customizer Settings Via Child Theme

/** * Set default settings when switching themes * See all default setting id's at framework/customizer/settigs/[base].php */ function my_default_total_settings() { // Set footer to 2 widgets set_theme_mod( 'footer_widgets_columns', '2' ); // Disable topbar set_theme_mod( 'top_bar', '' ); } add_action( 'after_switch_theme',…

Read more

Move Top Bar Outside The Header

/* The top bar is by default hooked into the header so when the header is disabled * so is the top bar. However, you can move the Top Bar into a different hook to prevent that * * @deprecated…

Read more
Back To Top