Thread: Add amp to link

Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2009
    Posts
    15
    Plugin Contributions
    0

    Default Add amp to link

    Hello guys,

    I want to fix the html validator for my site, and it says that insetad of &cPanel= it should be &cPanel= etc etc. I found how to change it, through html_output.php, and products are viewed fine, but if you click on one of the categories, it redirects you to the homepage, i don't know why... Any idea?

    Thanks,
    Artemis

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,251
    Plugin Contributions
    58

    Default Re: Add amp to link

    The validator is not pointing to Zen's made links, but rather ones you coded yourself.

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Nov 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: Add amp to link

    what you mean i didin't understand..

    you can check the site here: www.singular-cy.com

  4. #4
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,251
    Plugin Contributions
    58

    Default Re: Add amp to link

    What I mean... and this is the case....

    Zen Cart creates these links correctly, but your template has hand coded sections that were not correctly coded with the amp;

    Specifically your category menu.

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  5. #5
    Join Date
    Nov 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: Add amp to link

    Oh know i understand .. thanks very much for clarifying that.

    Btw last questions, can you explain a bit what amp; do?

  6. #6
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,251
    Plugin Contributions
    58

    Default Re: Add amp to link

    It's an ampersand, it is a special entity reference. It means amp or and. The & in the beginning and the ; on the end are the delimiters for the reference amp.

    The & version is for the coded part, like the links in your menu. When it is parsed in the browser it resolves to &.

    Here is a cool doc to help you http://htmlhelp.com/tools/validator/problems.html

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  7. #7
    Join Date
    Nov 2009
    Posts
    15
    Plugin Contributions
    0

    Default Re: Add amp to link

    ok thank you very mych, i understand a lot of thinks.. but..
    i found where to change the link and make it generate the & but still when you click on categories it redirects you to mainpage.. can you help me with that pls?

    Thanks

 

 

Similar Threads

  1. Add Log In Link to Product Page (Below the product name & price)
    By cleverpork in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Sep 2012, 04:50 AM
  2. Add "Cart" link & icon to header using EZpages
    By Elarya in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Mar 2008, 02:18 AM
  3. Add link inside ez-pages side box & footer
    By adamson in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Feb 2008, 09:13 PM
  4. Replies: 0
    Last Post: 18 Jun 2007, 04:44 AM

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