Follow us on
  1. Hey Mate,
    Found a slight issue, and a sort of hackish "fix"

    If I select an SVG for an image field, there is no preview for it instead showing the default.png.

    However, I can get it to display via:

    jQuery( document ).ready( function( $ ) {
    
        // get the SVG field
        var _svg = jQuery( 'input[value*=".svg"]' );
    
        // since we may have more than 1, run a loop
        _svg.each( function( _idx ) {
    
            // this element
            var _this = jQuery( this );
    
            // get the parent element
            var _parent = _this.closest( '.csf-fieldset' );
    
            // image preview
            var _preview = _parent.find('.csf--src');
    
            // get the elements value
            var _val = _this.val( );
    
            // set the preview source
            _preview.attr( 'src', _val );
    
            // set a height and width
            _preview.attr( 'height', 100 );
            _preview.attr( 'width', 100 );
    
        } );
    
    } );CopyCopied!
    Posted 2 years ago #

  2. Codestar
    Admin

    Hi,

    Oh yes, It's a bug and noted. I will fix this for next update surely.

    Thanks for report.

    Regards, Codestar

    Posted 2 years ago #
  3. No worries mate

    Posted 2 years ago #

  4. Codestar
    Admin

    It's came with latest update today

    Posted 2 years ago #
  5. Awesome bud

    Posted 2 years ago #

  6. Codestar
    Admin

    Posted 2 years ago #