|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
sbalay Smarty Rookie
Joined: 30 Aug 2011 Posts: 5
|
Posted: Wed Aug 31, 2011 2:22 pm Post subject: Anchor named tag |
|
|
hello,
On the first page I have a link READ MORE
On clicking it should goto particular section (somewhere in the middle of the page)
I tried using regular anchor named tag in html but it did not work...
Any suggestions.... |
|
Back to top |
|
bimal Smarty Elite
Joined: 19 Apr 2007 Posts: 423
|
Posted: Wed Aug 31, 2011 5:48 pm Post subject: basic HTML |
|
|
It is a basic HTML related question, and is not related to Smarty.
However, here is what you probably want to do:
In the read more link, jump to a hashed anchore name.
Code: | <a href="another-page.php#textmiddle">Read more</a> |
In the another-page.php, produce a named anchor just before where you want to come, when read more button of the other page is clicked on.
Code: | <a name="textmiddle"></a> |
Thats all. |
|
Back to top |
|
sbalay Smarty Rookie
Joined: 30 Aug 2011 Posts: 5
|
Posted: Wed Aug 31, 2011 6:10 pm Post subject: |
|
|
Thanks for ur reply..
I did it in the same way.. Its not working...
I wrote on .tpl file...
It doesnt go to the particular section.. Is there something different to write in tpl files..?? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|