• I used the following code to add a shortcode replacement sticky navigation logo but it didn’t work, I did something wrong. Looking forward to your early feedback. Thank you.

    add_filter( 'generate_navigation_logo_output', function() {
        $logo = do_shortcode( '[inline_navigation_shortcode]' );
    
    	return sprintf(
    		'<div class="navigation-branding">
    		    <div class="sticky-navigation-logo">
    				%1$s
    		    </div>
    		</div>',
    		$logo
    	);
    } );
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Replace shortcode into sticky navigation logo’ is closed to new replies.