Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1349272

    Hi,
    SVG-Logo does not show up.

    logo.svg:
    -Upload sucessfull
    – I set it in the Enfold settings
    – I can see it in the Enfold-settings
    – I dont see it in the frontend (logo area is empty)

    logo2.svg:
    Upload: You dont have permission to upload this filetype
    (I also tried to add this code in the function.php:

    /**
    * add SVG to allowed file uploads
    **/
    function add_file_types_to_uploads($file_types){
    
    $new_filetypes = array();
    $new_filetypes['svg'] = 'image/svg+xml';
    $file_types = array_merge($file_types, $new_filetypes );
    
    return $file_types;
    }
    add_action('upload_mimes', 'add_file_types_to_uploads'); 

    )

    kind regards
    Elvira

    #1349274

    Even with this code in my functions.php (provided by this forum) i cant upload logo2.svg
    Why??

    
    add_theme_support('avia_template_builder_custom_css');
    function cc_mime_types($mimes) {
      $mimes['svg'] = 'image/svg+xml';
      return $mimes;
    }
    add_filter('upload_mimes', 'cc_mime_types');
    #1349283

    did you check if your logo2.svg does open in a browser? Just drag&drop the svg from your desktop to an opend browser window.

    #1349284

    Hi,
    i just tested and they all open in a browser.

    BTW: Did you notice that there is a problem with “logo1” too?

    kind regards
    Elvira

    #1349354

    Hi Elvira,

    Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1349463

    btw – that is the right snippet, but that first line : add_theme_support('avia_template_builder_custom_css'); is not part of the needed code. this is an additional entry of your functions.php.
    i’m participant as you are – so i do not see any hidden private content. But if you like i will chack your svg or page too.

    #1351250

    Problem is that the website is still on my localhost.
    So how can we solve this?

    Just to make sure that the problem is not my SVG….can you provide me with a tested and working SVG and i try to embed it?
    This way we could have circled the problem

    Evi

    #1351464

    Hi,

    You can use any svg files from this site.

    // https://freesvg.org/

    Do you have the latest version of the theme (4.9.2.3)? Please feel free to update us once the site is live.

    Best regards,
    Ismael

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