[Support request] svg icons in the menu

Home Forums Support svg icons in the menu

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1474109
    Shaun

    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

    #1474136
    David
    Staff
    Customer Support

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.