Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2019
    Location
    UK
    Posts
    101
    Plugin Contributions
    0

    Default Validation issues with Trailing slash on void elements

    Hi all

    I noticed I have a few errors and a lot of info notifications when validating the code on my store, and while I've managed to fix a lot of them; I am struggling to locate the relevant files to fix others. My most common info is "Trailing slash on void elements has no effect and interacts badly with unquoted attribute values."

    https://validator.w3.org/nu/?doc=htt...eople.co.uk%2F
    https://www.thegluepeople.co.uk/

    I have already reduced the number of info alerts a lot by tracking down the lines that needed changing with developer tool kit, but most of the remaining ones seem to come from the category grid, featured products and new products on the main page and I cannot find which file(s) generate those category boxes to remove the trailing slash. I'm assuming I only need to find and remove 1-3 trailing slashes from my code to fix a bunch of the info warnings in one go.

    Would anyone be able to point me in the right direction to find the right file(s)? I have tried searching various strings in the dev toolkit and browsed all the template files using ftp/devphp but so far cannot find what I need.

    I'm using zencart 1.5.7c and Bootstrap Template v3.1.0

    I assumes validation warnings and errors have a negative impact on SEO but i'm not sure about the info ones.

    Thanks in advance

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,707
    Plugin Contributions
    123

    Default Re: Validation issues with Trailing slash on void elements

    for the image ones, modify includes/functions/html_output.php line 272 and change

    $image .= ' />';

    to

    $image .= '>';


    The other ones will be similar changes in the same file.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jan 2019
    Location
    UK
    Posts
    101
    Plugin Contributions
    0

    Default Re: Validation issues with Trailing slash on void elements

    Thank you very much!

 

 

Similar Threads

  1. Extra Trailing Slash - Breadcrumb Home Link
    By bumba000 in forum General Questions
    Replies: 2
    Last Post: 21 Oct 2021, 06:58 PM
  2. Javascript:void(0) error when adding image with ckeditor
    By huntleybill in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 27 Nov 2012, 03:12 AM
  3. v139f Installed SiteMap XML on v1.3.9f - Site Map URL is missing the trailing slash
    By ohob in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Jun 2012, 02:41 AM
  4. v139h trailing slash in url
    By Stevie-B in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 28 May 2012, 06:07 PM
  5. Email customer with refund or void info?
    By swamyg1 in forum General Questions
    Replies: 4
    Last Post: 4 Mar 2011, 06:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR