Viewing 3 reply threads
  • Author
    Posts
    • #9367
      osmansufy
      Participant

      `svg file don’t show in my page .Although svg file is uploaded using by ‘plugin’
      this is in settings section
      how i can solve this ?

      this is my code……….
      $top_sec = get_option(‘header_settings’);

      $logo = $top_sec[‘r_blog_logo’];

      $logo = $logo[0];
      $logo_url = wp_get_attachment_image_src($logo, ‘large’);


      <img src=”<?php echo esc_url($logo_url[0]); ?>” alt=”Site Logo”/><strong>

    • #9368
      Steve
      Keymaster

      By default I don’t think WordPress allows SVG files uploaded to the media library.

      Do you see the file there?

    • #9369
      osmansufy
      Participant

      yes ,I see svg file after using “SVG Support” plugin and Svg image show in chrome browser but don’t show in my “firefox browser” .How to fix it ? please answer ….thanks in advanced

    • #9374
      Steve
      Keymaster

      I recommend you break down the code and output the values so you can see what you have.

      For example:

      what does this output: $logo = $top_sec[‘r_blog_logo’];

Viewing 3 reply threads
  • You must be logged in to reply to this topic.