Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default adding a link to my site's footer

    Hi, all –

    I'm back to looking at ZC after a long hiatus. I feel like I'm starting from scratch.

    My specific question is, how do I modify the footer of my site? A header.php file exists, but no equivalent for the footer.

    A more general question is, has anyone put together a real tutorial yet? The FAQs are full of information, but I'm looking for something that would flow a bit more naturally.

    Thanks for any help.

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

    Default Re: adding a link to my site's footer

    From /includes/templates/template_default/common/tpl_footer.php:
    PHP Code:
    require(DIR_WS_MODULES zen_get_module_directory('footer.php')); 
    Therefore, you would modify /includes/modules/footer.php amd save it as /includes/modules/your_template/footer.php.

    There are header.php files in a number of places; are you sure you are looking at the right one?


    There is no top-to-bottom comprehensive design tutorial yet, nor is there likely to be unless someone publishes a large book. There is a program flow diagram in Free Addons; otherwise, the forum generally remains the best source of info for a particular area.

  3. #3
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: adding a link to my site's footer

    Thanks, Glenn. May I safely assume that if the /includes/modules/your_template/ subdirectory doesn't exist, I can manually create it? Or, is that a sign that I've done something wrong earlier?

    On another subject: do you happen to know if there's something wrong with the instant email notification feature? I had that set on this thread, but got nothing.

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

    Default Re: adding a link to my site's footer

    /your_template/ should be changed to whatever your custom template foldername is, and created if it doesn't yet exist. Any place you see a /classic/ folder in the Zen Cart structure, you can create your own custom folder for modified files at that level.

    I don't know about the forum notification; if I had that set my inbox would be overwhelmed:)

  5. #5
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: adding a link to my site's footer

    Having looked at the original tpl_footer.php file, I now wonder whether it's necessary for me to modify it after all. All I wanted to do was to add a link to the admin CP. My memory is really rusty on this, but...is this somehow done via the EZPAGES stuff?

    Thanks.

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

    Default Re: adding a link to my site's footer

    Yes, you can add an external link leading wherever you want using the ez-page system. Enable that link for the footer, give it a name and that name will show as a link in the footer.

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

    Default Re: adding a link to my site's footer

    There is also footer menu mod from
    http://www.zen-cart.com/index.php?ma...oducts_id=1330
    but as Glenn points out, if you just require link, use EZ pages
    option.

  8. #8
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: adding a link to my site's footer

    Quote Originally Posted by gjh42 View Post
    Yes, you can add an external link leading wherever you want using the ez-page system. Enable that link for the footer, give it a name and that name will show as a link in the footer.
    So, is this done through the Tools --> EZ Pages configuration panel? I can see where I can add an entire page, but that seems unnecessary. How do I "enable that link?"

    Thanks.

  9. #9
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: adding a link to my site's footer

    In case I didn't make my question clear...what I am trying to find out is whether I need to create a new page in order to add a link. That would seem to be an unnecessary intermediate step, but I don't see a way to simply add a link to the footer, other than hard-coding the footer file (which seems quite out of step with my understanding of the ZC philosophy).

    The FAQ example only shows doing this with a new page. Can someone tell me whether there's a more straightforward method for this?

    Thanks. I am determined to get the hang of ZC this time around.

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

    Default Re: adding a link to my site's footer

    If you create an ez-page with only a name, the display enabled for the footer, and a URL in the correct box at the bottom, you will get a straight link to your destination in the footer.

    This "ez-page" exists only as a means of getting that link to function.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Adding site map link to home page footer
    By allaboutme in forum General Questions
    Replies: 5
    Last Post: 16 Sep 2009, 11:24 AM
  2. Adding a URL Link to the image in my footer
    By limelites in forum General Questions
    Replies: 2
    Last Post: 23 Feb 2009, 05:15 PM
  3. Adding a js link to an outside site
    By TrvlFox in forum General Questions
    Replies: 1
    Last Post: 17 Oct 2007, 05:56 PM
  4. Adding a js link to an outside site PetFinder
    By TrvlFox in forum General Questions
    Replies: 0
    Last Post: 17 Oct 2007, 01:23 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