Results 1 to 3 of 3
  1. #1

    Default Adding Additional Link to Header

    I've read the zen cart tutorial about how to do this, but my code is different than in the tutorial so I don't know how to implement it.

    This is the relevant section from my tpl_header.php

    Code:
    	<div class="tab">
    	
    		<!--<a href="#">Home</a>
    		<a href="#">All</a>
    		<a href="#">New</a>
    		<a href="#">Featured</a>
    		<a href="#">Specials</a>
    		<a href="#">Search</a>
    		<a href="#">Shipping</a>
    		
    		<a href="#" style="background:none;">Contact Us</a>-->
    		
    		<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?>Home</a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'products_new.html">'; ?>New</a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '##############-watches-c-339.html">'; ?>Watches</a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '##############-swiss-watches-c-340.html">'; ?>Swiss Watches</a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '##############-handbags-c-343.html">'; ?>Handbags</a>
    		<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'designer-shoes-c-708.html">'; ?>Shoes</a>
    		<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'designer-belts-c-347.html">'; ?>Belts</a>
    		<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'designer-hats-c-916.html">'; ?>Hats</a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'desiger-sunglasses-c-349.html">'; ?> Sunglasses </a>
    	</div>
    I want to add a Blog after Sunglasses on my website, oldewatches.com. What I did is just copy the same code as the others used, and changed the link location and text so that it was:

    Code:
    		<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?>Home</a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'products_new.html">'; ?>New</a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '##############-watches-c-339.html">'; ?>Watches</a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '##############-swiss-watches-c-340.html">'; ?>Swiss Watches</a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '##############-handbags-c-343.html">'; ?>Handbags</a>
    		<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'designer-shoes-c-708.html">'; ?>Shoes</a>
    		<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'designer-belts-c-347.html">'; ?>Belts</a>
    		<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'designer-hats-c-916.html">'; ?>Hats</a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'desiger-sunglasses-c-349.html">'; ?> Sunglasses </a>
        	<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'blog/">'; ?>Blog</a>
    with www.oldewatches.com/blog being the location of my blog.

    This doesn't work though...anyone know how I would implement this? Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Adding Additional Link to Header

    Try this
    Code:
    <a href="/blog">Blog</a>
    or
    Code:
    <a href="http://your_site.com/blog">Blog</a>
    Zen-Venom Get Bitten

  3. #3

    Default Re: Adding Additional Link to Header

    Neither work, as well as several different permutations I tried.

    I'm just guessing here, but does it have to do with the DIR_WS_CATALOG and something not being defined correctly?

 

 

Similar Threads

  1. Adding additional sections to the Header
    By caesartrading in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 Jun 2011, 12:58 AM
  2. Adding Link to Header
    By jhaydon in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Apr 2011, 02:01 AM
  3. Adding additional images to the main header
    By shanesoine in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 18 Nov 2010, 06:11 PM
  4. Additional Link in Header.
    By PetleyJ in forum Basic Configuration
    Replies: 1
    Last Post: 1 Oct 2009, 08:31 PM
  5. Adding additional menu links to header.
    By raydeez in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Apr 2009, 11:29 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