Adding anchor to table names
-
Hi, I am using the most recent Tablepress, 0.8.1.
I would like to link from one part of the site directly to the table. So, I have “popular requests” in the side bar (i.e. Mammoth to Las Vegas) that I would like to link directly to the rate table corresponding to that request. I have tried a few different things but while they all get me to the Rate page, they do not get me to the desired rate table. Is this possible? https://originalmammothshuttle.com
Things I have tried:
1. In the Rate page, I have added the anchor tag like so:
<a name="#lasvegas"><div class="tablepress-wrapper"> [table id=3 /] </div> </a>
This made the whole table look like a link, but alas, clicking on the link in the sidebar did not actually take me to the table.
2. In the Rate page, I added the anchor tag a little differently:
<div class="tablepress-wrapper"> <a name="#lasvegas"> [table id=3 /] </a> </div>
This also made the whole table look like a link, but also moved the table down about 15pixels or so. Again, the sidebar link did not recognize the anchor.
3. I went into Tablepress and added the anchor tag to the table name.
So, under Table Information, in the Table Name I put:
<a name="#lasvegas">Mammoth to Las Vegas</a>
This made the table name look like a link AND moved the table down about 15 pixels or so. Sidebar link did not recognize the anchor.
- The topic ‘Adding anchor to table names’ is closed to new replies.