problem with links on head.tpl
I added links for "About Us/Contact/Help" on the head.tpl...The links work on all the other pages/catagories/cart/checkout ect. but for some reason they don't work at the home page. Does anyone know why or how to fix it?
|
post your code/template? :)
|
contact link: help.php?section=contactus&mode=update
help link: help.php about link: help.php?section=about |
Code:
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 class=TableTop width=100%> |
use absolute urls to everything
This can sometimes be considered bad programming, but it often solves problems if you make your navbar image and link references into absolute URLs (eg. http://www.yourdomain.com/directory/image.gif). This will keep your images and links from breaking if your using a secure server for your store. Hope that helps.
|
The Image I am using is absolute...any othe ideas?
Code:
<TD bgcolor="#6397fc" width="58%" align="right" valign="bottom">[img]http://cddream.com/images/top.gif[/img]</TD> |
oops...
I think I might have mislead you in my last post. The images should probably remain relative references, but you might consider making the actual hrefs absolute addresses to keep the secure store from having broken links or keep it from redirecting to your server's IP address rather than your named web address.
I'm not sure why your images are breaking. You've probably just got the wrong path to your graphics. Look at the original templates that came with X-cart. Put your images in the same place. Reference them the same way. That's about the only advice I can offer. Sorry. |
If your having problems with your extra images (i did) then the answer is pretty simple.
All you need to do is create a directory inside skin1_images folder and call it say my_images. drop all your extra images in there and upload the lot to the server. When you want to use any of the new images you must refer to the as follows ... [img]../{ #ImagesDir# }/my_images/my_pic.gif[/img] Because you have prefixed the location with ../{ #ImagesDir# }/ it works on either the normal or secure server as the ="../{ #ImagesDir# }/ gets replaced with the right address. I tried it and it works fine . I had hard coded my extra images to all load through my secure server address to start with which worked but would have been much slower then doing it this way. |
All times are GMT -8. The time now is 01:00 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.