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

    help question Need to change core files for this?

    I'm a newbie to Zen Cart and not sure of the best way to accomplish the look that I want.

    A good example of what I'd like to accomplish can be found here: johnfaulkner.co.uk

    It's a clean, simple look. I'm not sure if I'd have to modify core files. I'm hoping that no core files will have to be touched since that will make upgrades difficult.

    What are the best methods for accomplishing this?

    1. Create a new template (which I started)
    2. ?

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

    Default Re: Need to change core files for this?

    Created using zencart with sideboxes turned off.
    Not difficult to achieve similar/same layout.

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

    Default Re: Need to change core files for this?

    I doubt if any 'core' files (those which can't be overridden in your custom template) were edited to build that site, so creating that custom template would be your first task, then fiddling around in admin turning things on and/or off, then editing files to make things look exactly the way you want.

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

    Default Re: Need to change core files for this?

    Thanks! I already turned off all of the sidebars ... forgot to mention that in the original post.

    However, when I compared the example's HTML to mine (what was left after turning off all of the sidebars), the result is very different.

    The model website removed some IDs. Not sure how to do that without touching core files.

    For example, the model site's HTML looks like this:

    Code:
    <body id="indexHomeBody">
    <div id="mainWrapper">
    <!--bof-header logo and navigation display-->
    <div id="headerWrapper">
    <div id="headerContent">
    <!-- <div id="nameWrapper"></div>  -->
    <!-- <div id="taglineWrapper"></div> -->
    </div><!-- headerContent -->
    <div id="headerpic">
    <div id="slogan">
    and my default HTML looks like this:

    Code:
    <body id="indexHomeBody">
    <div id="mainWrapper">
    <!--bof-header logo and navigation display-->
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><a href="http://sitename.com/zenner/">Home</a></li>
    </ul>
    </div>
    <div id="navMainSearch"></div>
    <br class="clearBoth" />
    </div>
    <!--eof-navigation display-->
    <!--bof-branding display-->
    <div id="logoWrapper">
    So, how does one modify the HTML? Is it by modifying the associated PHP files for the template (i.e. ? /templates/tpl_index_default.php)?

    Thanks.

  5. #5
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Need to change core files for this?

    Start with this section of the tutorials/FAQ:

    https://www.zen-cart.com/tutorials/index.php?category=4
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

    Default Re: Need to change core files for this?

    Thanks!

    I started editing the template php files directly. This particular article answers my question:

    https://www.zen-cart.com/tutorials/i...hp?article=132

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Need to change core files for this?

    There's no particular reason to follow the exact custom div/classname structure of that site. You can do it using mostly the stock tpl_header.php elements with a few things commented out. The ez-pages header bar will handle the navigation links just like that site, using only admin settings and stylesheet tweaks.

  8. #8
    Join Date
    May 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: Need to change core files for this?

    Great tip! Thanks!!!!

  9. #9
    Join Date
    May 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: Need to change core files for this?

    How can I edit one of my previous posts? There's no edit button ...

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Need to change core files for this?

    You can only edit posts for 7 minutes. This is largely to keep the thread question & answer structure intact; if you went back much later and changed a question, the following replies would make no sense.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v154 Do I need to change anything in the shipping files for USPS to work?
    By Reenie in forum Addon Shipping Modules
    Replies: 3
    Last Post: 11 Jun 2015, 10:15 AM
  2. Stock by Attribute for ZC 1.3.9c/d changes to core files
    By nholovacs in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 2 Sep 2010, 12:08 AM
  3. So I Edited The Core Files
    By Battlefront Games in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Aug 2010, 04:37 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