Support » Plugin: Scriptless Social Sharing » Reference Theme Icons instead of SVG

  • Hi There ! First of all thanks a lot for your wonderful plugin !

    Is there a way to reference the themes own icons instead of the SVG ?

    I say this because the SVG icons slows down the page loading of 0,2 sec.

    In advance many thanks for your answer

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Robin Cornett


    If your theme is already loading SVG icons and they’re readily available, you can disable Scriptless completely from loading its own icons with this filter:

    add_filter( 'scriptlesssocialsharing_svg', '__return_false' );

    The filter also will accept an array as its return value, if you want to define what SVG sprite files should be loaded. This is more complex, and may not be needed. HTH

    Thread Starter tristan29


    Hi Robin, thanks for your answer,

    I am not sure to be able to achieve it ( I am a beginner), but I will try have a try.

    Best regards

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