Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2008
    Posts
    131
    Plugin Contributions
    0

    Default View Page Source

    When I open , the VIEW PAGE SOURCE of my website I notice that the following links are taking from the TEMPLATES_DEFAULT/CSS folder INSTEAD of my INCLUDES/TEMPLATES/CUSTOM/CSS/STYLESHEETS.CSS folder.
    I have modified my stylesheets.css and uploaded the changes but there won't come up on the website when I refresh it. What could be the reasons? My template is active in ADMIN/TOOLS.

    Do I need to change the name of the stylesheets.css file?

    <link rel="stylesheet" type="text/css" href="includes/templates/template_default/css/stylesheet.css" />
    <link rel="stylesheet" type="text/css" href="includes/templates/template_default/css/stylesheet_css_buttons.css" />

    <link rel="stylesheet" type="text/css" media="print" href="includes/templates/template_default/css/print_stylesheet.css" />
    </head>

    <body id="indexHomeBody">

    <div id="mainWrapper">

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: View Page Source

    There's something wrong with the way you set up the override. If it's set up correctly, Zen Cart should select the files associated with it automatically. Anything it needs that's missing will be picked up from template_default. Double check that the name of your custom folder is the same everywhere.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Oct 2008
    Posts
    131
    Plugin Contributions
    0

    Default Re: View Page Source

    I checked the name of all my CUSTOM folders and all are the same. I followed the OVERRIDE SYSTEM SIMPLIED structure to create my CUSTOM folders..
    This is how my TEMPLATE_INFO.PHP reads:
    <?php
    /**
    * Template Information File
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: template_info.php 2306 2005-11-05 21:34:28Z wilt $
    */
    $template_name = 'AMNY';
    $template_version = 'Version 1.0';
    $template_author = 'Alison Montalvo';
    $template_description = 'This is my own template, created for my site at www.amnyperfumes.com';
    $template_screenshot = '';
    ?>

  4. #4
    Join Date
    Oct 2008
    Posts
    131
    Plugin Contributions
    0

    Default Re: View Page Source

    BY THE WAY, in my Admin - Tools - TEMPLATE SELECTION shows:
    Template name: AMNY
    Directory name: AMNY

    so, in theory the correct template is uploaded.

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: View Page Source

    Does your new template have its own css folder which
    contains its own stylesheets?

  6. #6
    Join Date
    Dec 2007
    Location
    Southern Maine
    Posts
    281
    Plugin Contributions
    0

    Default Re: View Page Source

    You wrote
    TEMPLATES_DEFAULT/CSS folder INSTEAD of my INCLUDES/TEMPLATES/CUSTOM/CSS/STYLESHEETS.CSS
    Is your css actually called stylesheetS.css or is it stylesheet.css? I believe it should be stylesheet. Check to be sure it is spelled correctly.

  7. #7
    Join Date
    Oct 2008
    Posts
    131
    Plugin Contributions
    0

    Default Re: View Page Source

    Yes, in my CCS folder I cc all the files that were in the template_default/ccs folder.
    So when I change something in the stylesheet.css file, I upload and update it in that section, but changes don't come up on my website when I refresh it.

    Also, folders like COMMON , IMAGES, SIDEBOXES, TEMPLATES have files that I cc from the template_default directory.
    For instance, in my CUSTOM/TEMPLATES folder I have the file tpl_account_default_php though I have not changed anything there.

    Also, you are correct, the file name is STYLESHEET.CSS

    QUESTIONS:
    - Do I need to update my template in ADMIN/TOOLS everytime I add or update a folder/file? Do I also need to update the Layout Boxes Controller when so?

  8. #8
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: View Page Source

    Can you post URL of your zencart store?
    Difficult to advise working in dark!!

  9. #9
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: View Page Source

    So do you have:

    includes/templates/custom/css/stylesheet.css
    or
    includes/templates/AMNY/css/stylesheet.css

    It needs to be the second one.

    If it *is* the second one, try a lower-case name instead.

  10. #10
    Join Date
    Oct 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: View Page Source

    I came across this same problem. For me the solution was in the files I had copied. I had to open each file (ie. stylesheet.css) and change any references to the old template folder name. I may have done something wrong to have this happen but just in case you did the same thing I thought I'd let you know.

 

 

Similar Threads

  1. Too Much URL in (View Page Source)
    By crixus in forum Basic Configuration
    Replies: 15
    Last Post: 27 Dec 2013, 09:57 PM
  2. Block view Page Source
    By NWCE in forum General Questions
    Replies: 2
    Last Post: 17 Oct 2010, 07:08 PM
  3. Main Page (when view source)
    By rocketrod in forum Basic Configuration
    Replies: 7
    Last Post: 19 Sep 2006, 02:37 PM
  4. Main Page (view source)
    By rocketrod in forum General Questions
    Replies: 1
    Last Post: 19 Sep 2006, 01:48 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