• Resolved ccip

    (@ccip)


    Great plugin, thank you.

    I have an SVG that i would like to use instead of the magnifying glass default.

    Is that possible with custom script and/or CSS?

Viewing 1 replies (of 1 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hi,

    Sure, there is hook for this:

    
    add_filter( 'dgwt/wcas/icon', function ( $svg, $name ) {
    
      if($name === 'magnifier-thin') {
        $svg = '<svg>your svg body here</svg>';
      }
      return $svg;
    }, 10, 2 );
    

    Probably the custom CSS will be required.

    Best
    Damian

Viewing 1 replies (of 1 total)
  • The topic ‘Can I use a custom icon?’ is closed to new replies.