Add header background with amp-plugin

Posted in: Newspaper
Post count: 312

Hi,

I found a code in order to add a header background to my amp version, first I want to know if this code is correct, second where to add it. Thank you
header.amp-wp-header {
padding: 12px 0;
background: #000;
}
header.amp-wp-header a {
background-image: url( 'https://lowtechnation.com/wp-content/uploads/2020/05/Illustration_sans_titre-site-4.jpg' )!important;
background-repeat: no-repeat;
background-size: contain;
display: block;
height: 28px;
width: 94px;
margin: 0 auto;
text-indent: -9999px;
}

Post count: 312

Do I have to resize my background image before ?

Post count: 18283

Hello !

The code you have is not correct for the header created by tagDiv Composer. For this you will have to contact a freelancer or someone with coding skills in order to write you the proper code. Custom work is not covered by the support team.

Thank you !

Post count: 312

I found thank you


.td-header-wrap {
background-image: url( 'XXXXXXXX' );
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.