Site logo

Archived topic

svg icons in the menu

1 reply · Started by Shaun on October 6, 2020

Viewing posts 1–2 of 2

Hi

Earlier today I asked a question about svg icons in the menu. Your answer solved it - thx.

Bow I have 2 more queries:

  1. The custom icon I inserted is too large and the wrong color. While I can manually change the size, is there coding to make them the right size across devices
  2. Whether it is a custom icon or gp icon, how to I add a link to the icon code?

You can see my issue at https://leadershipsage.org/

Thx again for your help

Hi there,

simplest method is to use a Block Element to add your icon. It has the same Hooks as the Hook Element.

https://docs.generatepress.com/article/block-element-overview/

You can then use the GenerateBlocks Plugin to add a Buttons Block. The button block allows you to add your own, hide the button text ( it will be used for ARIA Accessibility )., and the color and size the icon.

This archived topic is closed to new replies.