Site logo

[Resolved] Need to add height and width attributes to existing snippets

Home Forums Support [Resolved] Need to add height and width attributes to existing snippets

Home Forums Support Need to add height and width attributes to existing snippets

  • This topic has 1 reply, 2 voices, and was last updated 5 years ago by Leo.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1716836
    metcomllc@aol.com

    I am trying to add the height and width attributes to an existing snippet below for my header logo for Googles Core Web Vitals.

    add_filter( 'generate_logo_output', 'tu_logo_target', 10, 3 );
    function tu_logo_target( $output, $logo_url, $html_attr ) {
    	printf(
    		'<div class="site-logo">
    			<a href="%1$s" title="hypnosis nyc hypnotherapy New York City" rel="home" rel="noopener" alt="Hypnotherapy NYC Hypnosis Center #1 Doctor Referred Hypnotist">
    				<img %3$s />
    			</a>
    		</div>',
    		esc_url( apply_filters( 'generate_logo_href' , "tel:1-877-800-6443" ) ),
    		esc_attr( apply_filters( 'generate_logo_title', get_bloginfo( 'name', 'display' ) ) ),
    		$html_attr
    	);
    }
    #1716897
    Leo
    Staff
    Customer Support

    Hi there,

    I just answered your topic here:
    https://generatepress.com/forums/topic/how-to-add-height-and-width-attributes-to-bottom-element-header/#post-1716895

    Please allow us enough time to answer (within 24 hours) and refrain from posting the question twice.

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Need to add height and width attributes to existing snippets’ is closed to new replies.