Archived topic
Need help with using ahref multiple ways.
3 replies · Started by Paolo on March 20, 2019
Hi! I want to have a table of contents on the top of my page that's linked which automatically moves the visitor to the portion of the page where they clicked at. At the same time, I want the target text of the page to be linked out as well. I need help figuring out the code. Here's a sample of what i'm referring to, but at the same time i want the target text to be linked as well. https://www.largeconferencecall.com/employee-productivity-remote-workplace/
So far this is what I have. Sorry i'm new to html need help fixing it.
Table of contents code:
<td>sample1</td>
Code of the targeted text that's hyperlinked as well:
<h3>id="sample2"</h3>
Right now it's showing id="sample2" when previewing the page, how do I show it as just sample2 with a link out to google.com?
Edit: I also found out that it overrides my theme settings. Is there a way for it not to override my theme settings?
Hi there,
something like this for table of contents:
<ul class="contents-list">
<li><a href="#sample-1">Link to sample 1</a></li>
<li><a href="#sample-2">Link to sample 2</a></li>
<li><a href="#sample-3">Link to sample 3</a></li>
<li><a href="#sample-4">Link to sample 4</a></li>
</ul>
and your jump to links like so:
<h3 id="sample-1"><a href="url-to-wherever">Sample 1</a></h3>
Worked like a charm David. Thank you. Since it overrides my theme settings, ill just add the appropriate code for it to look the same.
You're welcome.
I am not sure what you mean by overriding the theme settings? If you need any help with that, please explain :)