X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Read more link on homepage (https://forum.x-cart.com/showthread.php?t=74162)

traceygl 07-05-2016 04:10 AM

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

cflsystems 07-05-2016 07:33 AM

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

traceygl 07-05-2016 07:49 AM

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? :?

cflsystems 07-05-2016 07:49 AM

Re: Read more link on homepage
 
You can't use Webmaster mode for something line this. Changes must be made directly in templates.

traceygl 07-05-2016 08:02 AM

Re: Read more link on homepage
 
Ok thanks do you know which template file I would need to alter?

cflsystems 07-05-2016 08:07 AM

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.

traceygl 07-05-2016 08:23 AM

Re: Read more link on homepage
 
Thanks will try it just hope I dont screw anything up :wink:

traceygl 07-05-2016 08:42 AM

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 :oops:

cflsystems 07-05-2016 09:38 AM

Re: Read more link on homepage
 
Then you should hire a professional to get this done for you.

traceygl 07-05-2016 10:04 AM

Re: Read more link on homepage
 
Yes think I will have to. Fancy giving me a quote if your available?


All times are GMT -8. The time now is 03:39 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.