• Hi there,
    there seems to be a little error in the source code which results in a missing space between the attributes “class” and “style”.

    Example:
    [wp-svg-icons custom_icon="print" size="30px" wrap="i" class="wp-svg-custom-nostyle"]
    will translate to
    <i class="wp-svg-custom-print print wp-svg-custom-nostyle"style="font-size:30px;"></i>
    where there should be a space in front of “style”.

    Could you fix that for the next version?

    Thanks,
    Patrick

Viewing 1 replies (of 1 total)
  • Thread Starter premmels

    (@premmels)

    I was unable to locate an error in the source code (public/partials/wp-svg-icons-shortcodes.php) as the following part looks good to my (very limited) experience
    return '<a href="' . esc_url( $link ) . '" target="_blank"><' . esc_attr( $wrap ) . $classes . $styles . '></' . esc_attr( $wrap ) . '></a>';

    As a dirty, quick fix I inserted a space here
    $styles = '!INSERTED_SPACE_HERE!style="' . esc_attr( implode( '' , $styles_array ) ) . '"';

    That works for now but I would still be happy I you were able to fix is properly.

    • This reply was modified 7 years, 6 months ago by premmels.
    • This reply was modified 7 years, 6 months ago by premmels.
Viewing 1 replies (of 1 total)
  • The topic ‘W3 Validator: Error: No space between attributes.’ is closed to new replies.