Skip to content

Move Next/Previous Links To The Top Of Posts

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

Remove/Hide Categories From Breadcrumbs

// Removecategories from breadcrumbs trail function myprefix_remove_cats_from_breadcrumbs( $trail ) { unset( $trail['categories'] ); return $trail; } add_filter( 'wpex_breadcrumbs_trail', 'myprefix_remove_cats_from_breadcrumbs', 20 );

Read more
Back To Top