The following snippet can be used to add the local-scroll-link classname to the top bar email social link so that…
The following snippet can be used if you wish to hide the top bar social icons on small (mobile) devices.…
By default the top bar social links include a title attribute for SEO reasons which will show a little tooltip…
add_filter( 'wpex_topbar_social_link_attrs', function( $attrs ) { $attrs['rel'] = 'nofollow'; return $attrs; } );
add_filter( 'wpex_top_bar_content', function( $content ) { if ( is_page( 'about' ) ) { $content = 'Custom Content'; // Return custom…
add_filter( 'wpex_topbar_social_options', function( $options ) { // Add phone number option $options['phone'] = array( 'label' => 'Phone', 'icon_class' => 'ticon…
add_action( 'after_setup_theme', function() { // Get global Customizer settings global $wpex_theme_mods; // Check if topbar facebook value is set if…
function myprefix_move_topbar_to_header() { remove_action( 'wpex_hook_wrap_top', 'wpex_top_bar', 5 ); add_action( 'wpex_hook_header_top', 'wpex_top_bar', 1 ); } add_action( 'init', 'myprefix_move_topbar_to_header' );
Important: This functionality has been deprecated completely! Images load slowly so it's best to use the built-in font icons or…
function myprefix_move_topbar() { // Remove from wrap top remove_action( 'wpex_hook_wrap_top', 'wpex_top_bar', 5 ); // Re-add to header after hook add_action(…
add_action( 'wpex_is_top_bar_enabled', function( $bool ) { // Disable on checkout if ( function_exists( 'is_checkout' ) && is_checkout() ) { $bool…
Important: This is NO longer the case. The top bar is now hooked into wpex_hook_wrap_top with a priority of 5.…