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

Read more link on homepage

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-05-2016, 04:10 AM
 
traceygl traceygl is offline
 

Member
  
Join Date: Jul 2016
Posts: 11
 

Default Read more link on homepage

Does anyone know if its possible to have a readmore link in the homepage welcome message? I want it so that you see only the first few lines of text but when the read more link is clicked it expands out to show the remainder of the text. Any Help as to if this is possible and how would be greatly appreciated
__________________
X- cart 4.7
X-Menus
X-banners
X-Mobile
Reply With Quote
  #2  
Old 07-05-2016, 07:33 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Read more link on homepage

It is possible. You can simply use jQuery to shorten the message and expand on link click. Tons of example online, just Google it
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 07-05-2016, 07:49 AM
 
traceygl traceygl is offline
 

Member
  
Join Date: Jul 2016
Posts: 11
 

Default Re: Read more link on homepage

I did try that but doesn't seem to work. I am using webmaster mode and pasting it in to the pop up should I be putting it somewhere else?
__________________
X- cart 4.7
X-Menus
X-banners
X-Mobile
Reply With Quote
  #4  
Old 07-05-2016, 07:49 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Read more link on homepage

You can't use Webmaster mode for something line this. Changes must be made directly in templates.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 07-05-2016, 08:02 AM
 
traceygl traceygl is offline
 

Member
  
Join Date: Jul 2016
Posts: 11
 

Default Re: Read more link on homepage

Ok thanks do you know which template file I would need to alter?
__________________
X- cart 4.7
X-Menus
X-banners
X-Mobile
Reply With Quote
  #6  
Old 07-05-2016, 08:07 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Read more link on homepage

The welcome message shows from skin/common_files/customer/main/welcome.tpl. It is a language variable txt_welcome which you can modify.
You can insert the necessary js code in this template as well.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
traceygl (07-05-2016)
  #7  
Old 07-05-2016, 08:23 AM
 
traceygl traceygl is offline
 

Member
  
Join Date: Jul 2016
Posts: 11
 

Default Re: Read more link on homepage

Thanks will try it just hope I dont screw anything up
__________________
X- cart 4.7
X-Menus
X-banners
X-Mobile
Reply With Quote
  #8  
Old 07-05-2016, 08:42 AM
 
traceygl traceygl is offline
 

Member
  
Join Date: Jul 2016
Posts: 11
 

Default Re: Read more link on homepage

2nd thoughts that looks way too complicated for me to even attempt. I wouldn't know where to start with that file. Oh well back to the drawing board
__________________
X- cart 4.7
X-Menus
X-banners
X-Mobile
Reply With Quote
  #9  
Old 07-05-2016, 09:38 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Read more link on homepage

Then you should hire a professional to get this done for you.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #10  
Old 07-05-2016, 10:04 AM
 
traceygl traceygl is offline
 

Member
  
Join Date: Jul 2016
Posts: 11
 

Default Re: Read more link on homepage

Yes think I will have to. Fancy giving me a quote if your available?
__________________
X- cart 4.7
X-Menus
X-banners
X-Mobile
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 09:49 PM.

   

 
X-Cart forums © 2001-2020