Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    May 2010
    Posts
    15
    Plugin Contributions
    0

    Default Trying to find duff code

    I'm trying to support a friend who has a shop with ZenCart 1.3.7 but has no HTML experience. I have noticed, amongst other things, that the home page has two sets of <meta> tags, the 2nd within the body of the page.

    Also, all pages have a <base> tag which needs changing.

    Can anyone suggest where to start looking for the duff code please?

    Many thanks

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Trying to find duff code

    Maybe, with a link to the site.

  3. #3
    Join Date
    May 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Trying to find duff code


  4. #4
    Join Date
    May 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Trying to find duff code

    I've found the duff meta tags (in tools > define pages editor, define main page) and I've found keywords for the product pages.

    But any ideas where I find the keywords for the home page?

    Any ideas how to remove "ecommerce, open source, shop, online shopping" from keywords and description?

    Thanks

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

  6. #6
    Join Date
    May 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Trying to find duff code

    Thanks...

  7. #7
    Join Date
    May 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Trying to find duff code

    I've also read

    https://www.zen-cart.com/tutorials/index.php?article=62

    But nowhere can I find the text that makes up the home page keywords. It looks like a list of all the categories without commas between them. But nowhere can I find it suggesting that if no keywords are defined it will list the categories.

    Am I getting warm...

  8. #8
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Trying to find duff code

    In includes/languages/classic/english.php - Line #12 : //define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping');

    In includes/languages/english/meta_tags.php - Line #16 : define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping');

  9. #9
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Trying to find duff code

    You are getting "two sets" of header code (including the meta tags) because you are using an EXTERNAL html editor and copying/pasting the ENTIRE source code from that external editor into define_main_page.php.

    It's OK to use an external editor, but there are some rules to follow:

    1. DO NOT apply css styles to the page code, unless you then carry over the declarations to a stylesheet in your template. You can use some INLINE styles, as long as these are kept simple. You would be well-advised to NEVER create your source code HTML using a product with "Microsoft" in its title. (This includes MS Word and MS FrontPage or any other MS wysiwyg editor. MS is a sure fire way to fail MOST validation tests.)

    2. DO NOT copy the whole page's source code from the external editor... ONLY the parts BETWEEN (not including) the <body> and </body> tags. Zencart has already created the page from its own code, and this main-page content is actually now WITHIN the existing <body> tags of the page ZC creates.


    Meta Tags - site-wide:
    In the LANGUAGES folder of your installation, you will see in the english folder, a file called meta_tags.php .

    EDIT a copy of this file on your local machine, then FTP it to your CUSTOM folder: /languages/english/your_custom_folder/
    20 years a Zencart User

  10. #10
    Join Date
    May 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Trying to find duff code

    stevesh:
    Thanks again.

    schoolboy:
    Thanks. I have no idea how the meta tags got in that section, but I've deleted them.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. I'm trying to find define('STORE_OWNER', ... but cannot find
    By tcarden in forum General Questions
    Replies: 4
    Last Post: 13 Feb 2014, 11:47 AM
  2. Trying to Find a Basic Shipping Mod
    By MagicMan in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 23 Oct 2007, 03:16 AM
  3. trying to find the link to a file
    By Chrome Orange in forum General Questions
    Replies: 4
    Last Post: 6 Jul 2007, 01:26 PM
  4. Menus and duff html
    By ijyoung in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 12 Dec 2006, 10:28 PM

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