Hi there,
How do I get the contact us link at the top of my site alongside Home and Login??
Thanks for reading
Maxy
Hi there,
How do I get the contact us link at the top of my site alongside Home and Login??
Thanks for reading
Maxy
Those are in the navMain div that exists in tpl_header.php
You wil have to add/hard code a standard html href link into that div
Assuming your install is at the root of your account this will keep the link relative
Code:/index.php?main_page=contact_us
Zen-Venom Get Bitten
Hi Kobra,
If I want the contact us page to be on the right hand side is there a certain way I have to add this?
Also is it
<href index.php?main_page=contact_us
Sorry I'm not very good with this stuff
The file I referenced is fairly well internally documentedIf I want the contact us page to be on the right hand side is there a certain way I have to add this?
Find the BOF navMain & the EOF navMain
You will see a closing div - - </div>
before or right after the EOF
Insert your link before this closing div
Correct syntax
http://www.w3schools.com/HTML/html_links.asp
Zen-Venom Get Bitten
Hi Kobra,
I did that but I ended up getting a white line under my heading that said HEADING_CONTACT_US
I added the text below in red
<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div><li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
<!--eof-navigation display-->
and that you for the link
change:I did that but I ended up getting a white line under my heading that said HEADING_CONTACT_US
to:PHP Code:
<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div><li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
<!--eof-navigation display-->
to use HEADING_CONTACT_US, you will have to add a define statement to your english.php filePHP Code:
<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div><li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
PHP Code:
define('HEADING_CONTACT_US', 'Contact Us');
Thanks for that!!
does it matter where I place the [FONT=Courier New][/FONT]
[FONT=Courier New]define('HEADING_CONTACT_US', 'Contact Us'); info??[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]Cheers,[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]Maxy[/FONT]
Sorry I replied quickly to that.
You really should use the override system
simply copy the header.php file located in
/includes/languages/english
copy to
/includes/languages/english/extra_definitions/
you can add
belowPHP Code:
define('HEADING_CONTACT_US', 'Contact Us');
PHP Code:
define('HEADER_SALES_TEXT', 'TagLine Here');
No probs at all.
Thank's for replying.
I can't do it till I get home in a couple of hours anyway :)
Hi There,
I added
<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<br class="clearBoth" />
</div><li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo BOX_INFORMATION_CONTACT; ?></a></li>
to the /includes/languages/english/header.php file
It's showing Contact us now but it's in the wrong spot!!
But can't find where to add define('HEADING_CONTACT_US', 'Contact Us');
There is no define('HEADER_SALES_TEXT', 'TagLine Here');
in my English.php file
Cheers,
Maxy
Bookmarks