- This topic has 13 replies, 4 voices, and was last updated 3 years, 4 months ago by
David.
-
AuthorPosts
-
December 13, 2022 at 9:58 am #2460743
Sarah
Can I change the off canvas icon ? I can see that I have this “Desktop Toggle Label” in customiser – but that doesn’t change anything?
I change the SVG icon of the main menu using this link
https://docs.generatepress.com/article/generate_svg_icon_element/
But not the off canvas menu?
December 13, 2022 at 10:47 am #2460798Ying
StaffCustomer SupportHi Sarah,
Try this solution, replace the SVG code with yours.
https://generatepress.com/forums/topic/custom-off-canvas-menu-icon/#post-2319852December 13, 2022 at 11:02 am #2460819Sarah
Hi Ying – thank you – I have tried that and I cannot see where anything has changed? I have cleared cache but its still showing burger bar top right? Am I missing something?
December 13, 2022 at 6:02 pm #2461056Fernando Customer Support
Hi Sarah,
The Off Canvas Menu you’re using isn’t the one from GeneratePress. Are you using a plugin for that?
The code provided above only works for the GP Off Canvas Menu Toggle Icon. otherwise, you’ll need to reach out to the plugin support you’re using. Or, if you’re using custom code, you’ll need to alter it manually.
December 14, 2022 at 1:30 am #2461276Sarah
Hi Fernando – sorry but I am only using GP – premium plugin – nothing else – well other than generateblocks pro too but that doesn’t link to menus anyways? The off canvas menu is part of the pro package maybe?
December 14, 2022 at 1:44 am #2461298Fernando Customer Support
No, it doesn’t seem to be part of GB.
The icon is from Font Awesome. Can you provide admin login credentials so we can take a closer look? I may be missing something.
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
December 14, 2022 at 1:50 am #2461307Sarah
which part is the issue the icon or ? I used any Font Awesome SVG icon – just to try to get something to work – once I can see it changing I can then look at using the real icon – used code from post link above?
details attachedDecember 14, 2022 at 1:59 am #2461316Fernando Customer Support
I see. You’re currently hiding the actual Menu Toggle through this code:
.main-navigation .slideout-toggle:not(.custom-slideout-toggle) { display: none !important; }If you remove this, the GP menu toggle will appear.
The one you’re using now is created through custom HTML.
Would you like to reposition the GP menu toggle where your custom menu toggle is?
December 14, 2022 at 2:07 am #2461326Sarah
you’ve lost me that code above is for the primary menu not the off canvas icon? I have hidden for now and I can see the font awesome icons but the off canvas icon still doesn’t change – and its the off canvas menu icon I need changing 🙂
December 14, 2022 at 11:27 am #2461992Ying
StaffCustomer Supportthat code above is for the primary menu not the off canvas icon
No, the CSS is to hide the GP off canvas menu toggle icon.
Currently, the default GP off canvas menu toggle icon has been changed, but you have the font awsome icon as the off canvas toggle label, so there’re 2 icons now, you’ll need to remove the label.
https://www.screencast.com/t/JocCYqpg5December 15, 2022 at 7:01 am #2462787Sarah
Hi Ying – sorry I seem to have myself in a muddle here – so where do I change the off canvas icon then ? AS I have that css something in functions file too – an area in customise to add Font Awesome icon – but none seem to change that large icon you highlighted?
December 15, 2022 at 10:34 am #2463201David
StaffCustomer SupportHi there,
so this Menu Icon:
https://www.screencast.com/t/ogcDSt7Y1O
Has been added using HTML in the Appearance > Widgets -> Header Widget.
This here is that HTML:<a class="slideout-toggle custom-slideout-toggle" href="#"><i class="fa-solid fa-bars"></i></a>Are you wanting to change that icon ?
December 15, 2022 at 10:43 am #2463211Sarah
THANK YOU! and gosh what a numpty I am – I forgot that there was 2 parts to the code we looked at – please ignore me no wonder I couldn’t figure it out!!
December 16, 2022 at 2:20 am #2463817David
StaffCustomer SupportGlad to be of help
-
AuthorPosts
- You must be logged in to reply to this topic.