[Resolved] How do I apply a gradient to an SVG shape using Generate Blocks

Home Forums Support [Resolved] How do I apply a gradient to an SVG shape using Generate Blocks

Home Forums Support How do I apply a gradient to an SVG shape using Generate Blocks

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2089205
    Ian

    I would like to apply gradients to the arrow shapes but can’t find how to do that with GP Pro

    #2089514
    David
    Staff
    Customer Support

    Hi there,

    SVGs don’t support CSS Gradient backgrounds.
    It requires a linearGradient element in the SVG HTML, and then it can be loaded as Fill.

    See here for example:

    https://stackoverflow.com/a/14051549

    To do it with GenerateBlocks would require the Pro version so you can load your own Shapes, and even then i am not 100% sure how the WP SVG sanitization would treat them.

    #2091193
    Ian

    Thanks David, I’ll check it out.

    #2091521
    David
    Staff
    Customer Support

    You’re welcome

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