Created
February 24, 2016 23:31
-
-
Save kjy112/95963479037e01aa5946 to your computer and use it in GitHub Desktop.
Code for Logo Only
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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 | |
}?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment