Support » Theme: Dara » Modify SVG Container Declaration in Dara

  • Resolved feniva

    (@feniva)


    Hi Support Community,

    I am trying to eliminate 2 errors on my WP site using the Dara theme that is causing Google Chrome to declare my site as partially unsecured instead of fully secured. I’ve tried using plugins to change/update the URLs causing problmes (i.e. change “http://&#8221; to “https://&#8221;) but the plugins had not affect on the SVG container that appears when I view the Source in Google Chrome for the static Home page. The HTML shown is <svg style=”position: absolute; width: 0; height: 0; overflow: hidden;” version=”1.1″ xmlns=”http://www.w3.org/2000/svg&#8221; xmlns:xlink=”http://www.w3.org/1999/xlink”&gt;
    <defs>…</defs></svg> and the errors are the 2 URL in the <svg> tag. Does anyone now how I can override and/or replace the <svg> declaration such that Google Chrome will read and show the SVG container HTML as <svg style=”position: absolute; width: 0; height: 0; overflow: hidden;” version=”1.1″ xmlns=”https://www.w3.org/2000/svg&#8221; xmlns:xlink=”https://www.w3.org/1999/xlink”&gt; … ?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    In your site’s source, I do see:

    <svg style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">

    This is line 6 of the genericons.svg file.

    This is a industry-standard meta declaration, and as it does not load on your site, it actually shouldn’t cause any problem. It’s like having an HTTP link on the site, not an active loaded HTTP element.

    Even WordPress’s latest default theme Twenty Twenty has:

    <svg class="svg-icon" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" width="23" height="23" viewBox="0 0 23 23">

    Personally, I believe Chrome’s check to be incorrect here. For example, Firefox doesn’t consider it a problem.

    Considering also that both Dara and Genericons have been discontinued, it’s unlikely that we’ll be able to get a change out for this.

    Hi James,

    Thanks for responding and I appreciate your explanation. While hoping to receive a response, I backed up my site and reinstalled the Dara theme. After re-adding the header graphic, background image, and re-publishing the site, Google Chrome indicated that the site was fully secure by displaying the locked padlock icon. I noticed that the SVG container declaration still shows “http://&#8221; but Google Chrome is not flagging it as error.

    Again, thanks for responding. Have a great day, be safe and remain healthy.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modify SVG Container Declaration in Dara’ is closed to new replies.