• Resolved GregHP

    (@greghp)


    Hi, thanks for your great job!

    Unfortunaly, i’ve some problem to adds this code :

    add_action( 'amp_post_template_css', 'xyz_amp_additional_css_styles' );
    
    function xyz_amp_additional_css_styles( $amp_template ) {
    	// only CSS here please...
    	?>
    	nav.amp-wp-title-bar {
    		padding: 12px 0;
    		background: #000;
    	}
    	nav.amp-wp-title-bar a {
    		background-image: url( 'https://example.com/path/to/logo.png' );
    		background-repeat: no-repeat;
    		background-size: contain;
    		display: block;
    		height: 28px;
    		width: 94px;
    		margin: 0 auto;
    		text-indent: -9999px;
    	}
    	<?php
    }

    I’ll already child theme and adds code on my functions.php but nothings change…

    Maybee, you’ll can tell me whats wrong?

    Thanks in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Change logo’ is closed to new replies.