Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Adding "Contact Us" link to the top of the template

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-15-2015, 09:59 AM
 
Mips Mips is offline
 

Newbie
  
Join Date: Apr 2015
Posts: 5
 

Smile Adding "Contact Us" link to the top of the template

We would like to add 3 top links on the top of the template (to the left of "Sign In" and "Register". What module or class is responsible for this kind of change in X-Cart 5 please ?

Thanks,
Mips
__________________
X-Cart 5 Business
Reply With Quote
  #2  
Old 04-15-2015, 01:32 PM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Re: Adding "Contact Us" link to the top of the template

If you just want to add 3 html links you should be able to add those to the /skins/default/en/layout/header.bar.tpl It may require a little css depending on how you might want to style them.
__________________
Ver 5.2.6
Reply With Quote
  #3  
Old 04-15-2015, 01:40 PM
 
Mips Mips is offline
 

Newbie
  
Join Date: Apr 2015
Posts: 5
 

Default Re: Adding "Contact Us" link to the top of the template

Thank you.
Quote:
Originally Posted by Phil Richman
If you just want to add 3 html links you should be able to add those to the /skins/default/en/layout/header.bar.tpl It may require a little css depending on how you might want to style them.
So you would use css to style the links. But to actually add the links themselves, would you need to use html, or php ? A bit new at it here ...

Thanks,
Mips.
__________________
X-Cart 5 Business
Reply With Quote
  #4  
Old 04-15-2015, 02:01 PM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Re: Adding "Contact Us" link to the top of the template

Quote:
Originally Posted by Mips
Thank you.

So you would use css to style the links. But to actually add the links themselves, would you need to use html, or php ? A bit new at it here ...

Thanks,
Mips.
In .tpl files you just use straight html. Something as simple as
<a href="contact_us.html">Contact Us</a> or you can make an ordered list out of the 3 links with something like

<ul class="new-top-links" >
<li>
<a href="contact_us.html">Contact Us</a>
</li>
<li>
<a href="link2.html">Link2</a>
</li> <li>
<a href="link3.html">Link3</a>
</li>
</ul>

Hopefully that makes sense. Just a quick example. If you have any problems just post again and I will try to help you further.
__________________
Ver 5.2.6
Reply With Quote
  #5  
Old 04-15-2015, 02:07 PM
 
Phil Richman Phil Richman is offline
 

Advanced Member
  
Join Date: May 2012
Posts: 94
 

Default Re: Adding "Contact Us" link to the top of the template

Quote:
Originally Posted by Phil Richman
In .tpl files you just use straight html. Something as simple as
<a href="contact_us.html">Contact Us</a> or you can make an ordered list out of the 3 links with something like

<ul class="new-top-links" >
<li>
<a href="contact_us.html">Contact Us</a>
</li>
<li>
<a href="link2.html">Link2</a>
</li> <li>
<a href="link3.html">Link3</a>
</li>
</ul>

Hopefully that makes sense. Just a quick example. If you have any problems just post again and I will try to help you further.
Sorry I just realized i misspoke. Rather than /skins/default/en/layout/header.bar.tpl you should make a copy of that file and move the copy to /skins/custom_skin/default/en/layout/header.bar.tpl

You will need to enable the custom skin mod. In xcart 5 you never make your changes to the original files, but always make a custom version of them. Otherwise you will lose them during updates. The update process replaces all stock xcart files which would throw out your custimizations. Sorry about that I didn't stop to think about you being new and possibly not knowing that. Let me know if that doesn't make sense.
__________________
Ver 5.2.6
Reply With Quote

The following user thanks Phil Richman for this useful post:
tony_sologubov (04-16-2015)
  #6  
Old 04-16-2015, 05:31 AM
 
Mips Mips is offline
 

Newbie
  
Join Date: Apr 2015
Posts: 5
 

Default Re: Adding "Contact Us" link to the top of the template

Good tip, I will try that.

Thank you.
Mips.
__________________
X-Cart 5 Business
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:52 PM.

   

 
X-Cart forums © 2001-2020