[Resolved] Is there any Hook for button?

Home Forums Support [Resolved] Is there any Hook for button?

Home Forums Support Is there any Hook for button?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #940445
    Sebastien

    Hi,

    I’ve made a custom SVG icon library, with CPT. I’m able to call my SVG icon using PHP into function.php (only: I can’t add php directly into wordpress editor).

    I would like to know if there any way to Hook all <button> </button>. My plan is to add SVG icons into the tag <button> </button>.

    I could use shortcode… but I tend to avoid it since I discover it descrease speed load.

    thanks

    #940463
    David
    Staff
    Customer Support

    Hi there,

    no – hooks have to be written into a template.
    Choices are to inline the SVG within the button HTML or to use a shortcode.

    #940491
    Sebastien

    Thanks !
    I’m going to try to create a new block ‘Custom button’ with a dedicated template.

    #940494
    David
    Staff
    Customer Support

    Cool 🙂

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