Hi there,
I implemented a submenu and added a logo following https://kriesi.at/support/topic/logo-in-fullwidth-submenu/ .
How can I make that logo a clickable link?
Best Regards
Hey!
Thank you for using Enfold.
Please remove the css modification then add this one.
.submenu_logo {
width: 120px;
height: auto;
overflow: hidden;
position: absolute;
top: 0;
left: 10%;
}
After that, add this snippet in the functions.php file.
// submenu logo
function ava_custom_script() {
?>
<script type="text/javascript">
(function($) {
function a() {
$('#top .av-submenu-container').append("<a href='URL' class='submenu_logo'><img src='//thymeforachef.com.au/wp-content/uploads/2017/01/Megara-logo-340x156.png' /></a>");
}
a();
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script');
Adjust the URL.
Regards,
Ismael
Perfect, thanks. You can close this one.