hello guys,
we set a background for header menu .
I would like to add button where it says “donate” ;
how can we do it wisely
where in code exactly can we add such a button.
thanks!
Hi!
Put this code at the end of your theme functions.php file:
function add_donate_link(){
?>
<a class="custom_content" href="PUT LINK HERE"></a>
<?php
}
add_filter('ava_after_main_menu', 'add_donate_link');
And add this to the Quick CSS:
div.custom_content {
position: absolute;
right: 20px;
width: 170px;
height: 40px;
display: block;
}
Cheers!
Josue
Hi Josue
It shows an error
are you sure about the syntax?
Parse error: syntax error, unexpected ‘?’ in /home4/yakov/public_html/WJH/wp-content/themes/enfold/functions.php on line 486
Hi,
Can you create an administrator account and post it here as a private reply?
Regards,
Josue
Done:
http://nt-technologies.com/WJH/
Change the link here (at the very bottom):
http://nt-technologies.com/WJH/wp-admin/theme-editor.php?file=functions.php&theme=enfold
Cheers!
Josue
Great!
top service .
You are welcome, glad we could help :)
Regards,
Josue