Pro - adding logo to "off canvas" of navigation collapsed element

Hi, i need to add logo to mobile menu.
Logo is png format.

any suggestion? I don’t want to use any additional extension.

2 Likes

Hello,

Thank you for writing in!

We can provide a custom code to you, so, if you could post some logins details in a secure note and we`d be happy to take a look.

P.S: You can search by “secure note” on this article if you don`t know about this: https://theme.co/apex/forum/t/themeco-support-overview/288

Hello @Kyros,

This options is not available by default. Although we can achieve this by using the following JS:

 jQuery(document).ready(function($){
   $('.x-off-canvas-content').prepend('<a class="x-image" href="#"><img alt="Image" src="https://themeco-templates.s3.amazonaws.com/assets/logo-green-white.png" width="172" height="70"></a>');
 });

Please do change the image URL and dimensions. I assumed you want it to be link too so I wrapped it inside link tag. Just add the URL on href parameter.

Hope this helps.

1 Like

Thanks @john and @Lely,
jquery solution work like a charm:slight_smile:

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.