Tagged: customize header
Dear Support,
Please can you assist me. I am trying to add a newsletter signup in my header area, to the right of the logo.
Above is the screenshot of where I want to display the button.
I tried using this code:
add_action( 'ava_main_header', 'enfold_customization_add_to_header' );
function enfold_customization_add_to_header() {
echo '<a href="http://aac.mediax.co.za/newsletter-signup/">
<div class="fp-button">Newsletter signup</div>
</a>';
}
But this places the div above the logo area and not in the save div.
regards,
MediaX
Hey!
Try changing the code to:
add_action( 'ava_main_header', 'enfold_customization_add_to_header' );
function enfold_customization_add_to_header() {
echo '<a href="http://aac.mediax.co.za/newsletter-signup/" class="newsletter_bttn">
<div class="fp-button">Newsletter signup</div>
</a>';
}
And then add this to Quick CSS:
.newsletter_bttn{
position: absolute;
right: 0;
}
If possible please post a link to the site.
Best regards,
Josue
Thanks for the reply Josue,
I added this code to my css and it fixed the issue:
.fpmx-button{
background-color:#37782E;
color:#fff;
font-size:19px;
padding:15px 20px;
text-align:center;
position:absolute;
right:15%;
top:15px;
z-index:10000;}
Kind regards,
MediaX
You are welcome, glad to help :)
Regards,
Josue