Thank you again Clyde.
I worked it out.
Hey Clyde,
Love your template!!!!
I have just started back on my site (s ) after a couple months away and feel like I am back to square one.
Is it possible to add to and or delete from the top horizontal navigation on the cold steel template. ( home, contact us etc.. )
I know you can add ezpages underneath but I would like for example to add a tab that says " Order Online " and then this tab when clicked goes to an online site.
My current site is for showcase only..
www.iqartcards.com I would like the link on the tab to go to www.iqcardshop.com/categories
If this is not possible can I delete the tabs and just use ezpages across the top.
Hope this makes sense
Thanks
Ren
open includes/templates/cold_steel/common/tpl_header.php
find the following section of code:
You can add any additional links you wish.PHP Code:
<!--bof-navigation display-->
<div id="navMainWrapper">
<ul id="navMain">
<li<?php echo (($this_is_home_page) ? ' class="current">' : '>');?><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo '<span>' . HEADER_TITLE_CATALOG . '</span>'; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
<li<?php echo (($current_page_base == 'logoff') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGOFF . '</span>'; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li<?php echo (($current_page_base == 'login') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGIN . '</span>'; ?></a></li>
<?php } } ?>
<li<?php echo (($current_page_base == 'contact_us') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo '<span>' . BOX_INFORMATION_CONTACT . '</span>'; ?></a></li>
<li<?php echo (($current_page_base == 'account') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_MY_ACCOUNT . '</span>'; ?></a></li>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li<?php echo ((in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_confirmation,checkout_success'))) ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CHECKOUT . '</span>'; ?></a></li>
<?php }?>
<li<?php echo (($current_page_base == 'shopping_cart') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CART_CONTENTS . '</span>'; ?></a></li>
</ul>
</div>
<!--eof-navigation display-->
</div>
Hello,
I just installed the great cold_steel template. Now I am customizing the website and find that modifying the file includes/templates/cold_steel/css/stylesheet.css doesn't change the layout. Then I deleted the file and still nothing changed. Something must be wrong. Would somebody tell me the reason and how to fix it? Thanks in advance!
cclcc
Zen Cart version: 1.3.8a
Hi clyde,
Thank you for your quick response. The link to my website is: http://www.lincorpjewelry.com/onlinestore/ . I want to change the location of navigation bar in the header. Also I plan to change the position of log in / register.
There is another thing confusing me . When I look up "navMainWrapper" in all files by "developers toll kit ", the resluts show that only two files "includes/templates/cold_steel/common/tpl_header.php "
and "includes/templates/template_default/common/tpl_header.php" include it. But stylesheet.css has the "#navMainWrapper" and I don't understand why it can not be searched.
Thank you again!
cclcc
Zen Cart version: 1.3.8a
to change the position of the navigation bar,
open includes/templates/cold_steel/common/tpl_header.php
locate the following section of code and move it to where you would like it to appear.
I may be wrong, but I don't think the developers tool kit was designed to search through the stylesheets.PHP Code:
<!--bof-navigation display-->
<div id="navMainWrapper">
<ul id="navMain">
<li<?php echo (($this_is_home_page) ? ' class="current">' : '>');?><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo '<span>' . HEADER_TITLE_CATALOG . '</span>'; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
<li<?php echo (($current_page_base == 'logoff') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGOFF . '</span>'; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li<?php echo (($current_page_base == 'login') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGIN . '</span>'; ?></a></li>
<?php } } ?>
<li<?php echo (($current_page_base == 'contact_us') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo '<span>' . BOX_INFORMATION_CONTACT . '</span>'; ?></a></li>
<li<?php echo (($current_page_base == 'account') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_MY_ACCOUNT . '</span>'; ?></a></li>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li<?php echo ((in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_confirmation,checkout_success'))) ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CHECKOUT . '</span>'; ?></a></li>
<?php }?>
<li<?php echo (($current_page_base == 'shopping_cart') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CART_CONTENTS . '</span>'; ?></a></li>
</ul>
</div>
<!--eof-navigation display-->
Hi clydl,
I found the file tpl_header.php. and knew that the location of navigation bar is determined by <div id="navMainWrapper">. The current definition of #navMainWrapper in stylesheet.css is as following:
#navMainWrapper {
position:absolute;
left: 201px;
top: 90px;
font-size: 1.2em;
}
What I want is : left: 350px;
I did the change in stylesheet.css . But it doesn't work. Further I deleted the stylesheet.css file , still nothing changed. It seems the stylesheet.css has no relation with the file tpl_header.php.
Thanks,
cclcc
Zen Cart version: 1.3.8a
You might want to clear your cache, the css file should have an effect on the display of the template.
You might also want to look somewhere in this thread for "tab nav fix" if you just installed the template.
EDIT: didn't read your previous post, you are editing the right file.
Last edited by mhel; 17 Dec 2009 at 08:44 PM.
Bookmarks