• I’m not sure if others agree, but part of using shortcodes is to tighten up my markup. With that in mind might it be possible to change or add secondary shortcodes:
    [wp-svg-icons icon="headphones" wrap="i"]
    to
    [svgicons i="headphones"]

    It’s safe for the wrap to be assumed “i” if not stated otherwise.

    Don’t need the wp- because the shortcode is being used inside wordpress. ??

    That said, I’d be grateful if it was able to specify padding [I’m targeting the specific classes from style.css currently] such that any of the possible css standards are possible:

    [svgicons i="headphones" p="4px"]
    [svgicons i="headphones" p="1em"]
    [svgicons i="headphones" p="0 1em 0 0"]
    [svgicons i="headphones" p="2px 0"]

    And so forth. To just pass that string into {padding:string;}

    Thanks. The icons I’ve found to use are beautiful and, well… very iconic. No ambiguity, this icon says what it is.

    • This topic was modified 6 years, 9 months ago by Puddleglum.
Viewing 1 replies (of 1 total)
  • Thread Starter Puddleglum

    (@puddleglum)

    Lol. I removed the wrap=”i” just to see if you might have actually programmed it to default to one wrap or the other. Nothin’ doin’. ??

    Whoops! It looks like you forgot to specify your html tag.

Viewing 1 replies (of 1 total)
  • The topic ‘Suggested Changes’ is closed to new replies.