Announcement

Collapse
No announcement yet.

W3 Validator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    W3 Validator

    It's something of bucket list item for me to have a page completely validate but using the Suivant Ready Theme, it's close! Both the following inbuilt items use the obsolete language attribute:

    Head tag:
    Code:
    <mvt:item name="clientdimensions" />
    Results in:
    Code:
    <script language="JavaScript"> function clientdimensions
    Global footer:
    Code:
    <mvt:item name="ga_tracking" />
    Results in:
    Code:
    <script language="JavaScript">
    <!--
    var Product_Code = 'SKLTN450';
    var Screen = 'PROD';
    //-->
    </script>
    
    <script>
    (function(i,s,o,g,r,a,m)
    Possible to get both of those corrected?


    FYI: it is really frustrating using this forum as a new user--captcha on everything, moderated posts not showing, etc. Judging by the number of users online, bots are rampant so I can understand the lockdown, but if there was a way to get approved quicker as a human, that'd be great.

    Bret.

    #2
    Client Dimensions is editable via the admin.

    For client dimensions, go to User Interface -> Settings and scroll down to the Client Dimensions tab group. Here you'll see the JS and can remove the language attribute

    The other code does not look like our default JS code, but it should be editable under Utilities, -> Google Analytics -> Advanced Mode
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Thanks! Didn't see that clientdimensions created that tab.

      Originally posted by Brennan View Post

      The other code does not look like our default JS code, but it should be editable under Utilities, -> Google Analytics -> Advanced Mode
      This one is a mystery then. I have seen it on another merchant site in the same place so not sure where it comes from. GA -> Advanced Mode begins with:

      Code:
      <mvt:miva compresswhitespace="off" />
      <script>
      (function(i,s,o,g,r,a,m)
      ...so it's not editable there. This is the global footer:

      Code:
      <!--[if lt IE 9]>
          <script src="../js/rem.min.js"></script>
      <![endif]-->
      <mvt:item name="ga_tracking" />
      And that renders as:

      Code:
      <!--[if lt IE 9]> <script src="../js/rem.min.js"></script> <![endif]-->
      <script language="JavaScript">
      <!--
      var Product_Code = 'SKLCE255X';
      var Screen = 'PROD';
      //-->
      </script>
      
      <script>
      (function(i,s,o,g,r,a,m)
      So there is nothing called between the end of the IE 9 'if' condition and the ga_tracking item but those Product_Code and Screen vars are inserted there.


      Comment


        #4
        I removed
        Code:
         <mvt:item name="ga_tracking" />
        and this was also removed:

        Code:
         <script language="JavaScript"> <!-- var Product_Code = 'SKLCE255X'; var Screen = 'PROD'; //--> </script>
        So definitely coming from the Google Analytics module and apparently not editable.

        We are using Mode: Universal (analytics.js)
        Last edited by thesupplytree.com; 09-28-16, 09:56 AM.

        Comment

        Working...
        X