Hi,
I'm trying to add an anchor tag to the menu so that when someone clicks on 'Contact Us' in the navigation they are taken to the bottom of the page where all the contact details are. My attempts so far have either done nothing, caused a 404 error or have linked to the home page - am stumped!
Thanks for your help,
Becky
How to add anchor tag to menu [SOLVED]
How to add anchor tag to menu [SOLVED]
Last edited by becfret on Tue Mar 18, 2014 5:29 pm, edited 1 time in total.
Re: How to add anchor tag to menu
Are you using the menu manager?
There are few ways to do this....
1) look under the Extensions and then Tags in the Admin for 'Anchor'
{anchor anchor='here' text='Scroll Down'}
2) you can use a Smarty tag:
<a href="{$smarty.get.page}#anchor">Anchor</a>
3) I believe the CGSimpleSmarty and/or CGExtensions modules has an anchor tag or a way to create an anchor from one of the tools it provides.
4) menu manager:
Where the <a> link is:
{$node->alias}#anchor
There are few ways to do this....
1) look under the Extensions and then Tags in the Admin for 'Anchor'
{anchor anchor='here' text='Scroll Down'}
2) you can use a Smarty tag:
<a href="{$smarty.get.page}#anchor">Anchor</a>
3) I believe the CGSimpleSmarty and/or CGExtensions modules has an anchor tag or a way to create an anchor from one of the tools it provides.
4) menu manager:
Where the <a> link is:
{$node->alias}#anchor
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Re: How to add anchor tag to menu
I added <li>{anchor anchor='anchor' text='Contact'}</li> to menu manager and it's working perfectly.
Thank you so much
Becky
Thank you so much
Becky


