Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

link to an anchor that already links to another anchor

I want to change the an anchor that the original web developer placed

4:38 pm on Jun 9, 2011 (gmt 0)

New User

5+ Year Member

joined:June 9, 2011
posts: 4
votes: 0

I want to change the link and the anchor it points to that my web developer has put in place. I am quite capable of working with html on my individual pages, but not so confident with CSS. I think he coded the link and the anchor in CSS, and I'm afraid to mess with it. On one page, I have one-liner comments that link to another page showing the comments in full. He has the link anchored to the comment heading -- I want the link to point to an individual comment. <snip> The one-liners are on the About Us page. Ultimately what I want is, when a visitor clicks on a one-liner comment, it will take them directly to the full comment.

[edited by: engine at 2:32 pm (utc) on Feb 3, 2012]

7:38 pm on June 9, 2011 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
votes: 403

Whoops, got an extra > right before the close of the very first link. Also a whole duplicate </a>. And, interestingly, a matching > at the end of the corresponding comment. Also forgot to encode ampersands in names (John & Mary needs to be John &amp; Mary).

This is definitely not a CSS question; that only concerns the styling of the links, and they're all the same.

If it were an HTML question, the answer would be to anchor the comments individually, with links to match: #tenant1, #tenant2 and so on.

But this almost certainly isn't an HTML question either. It's a php question. That is, your web developer didn't actually make the page that you see before you. He made php code that builds the page dynamically. Without seeing that code, it's impossible to know what would be involved in changing the anchors.

Huh. I had no idea you could link to an id that wasn't inside an <a>. Link checker didn't bat an eye, though it did-- ahem-- find a couple of bad links.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members