Quick Question

Status
Not open for further replies.

lukoot

New Member
Messages
120
Reaction score
2
Points
0
i can link from a main page to a sub page but can someone tell me please how do i link to a certain part of the sub page ?
say i had some words on a main page and i wanted to link them to a article in the middle of the sub page how do i link direct to that article and not just the overall sub page

thanks in advance for any replies
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
On target page....

<a name="target">Beginning</a> of the target article

link to target:

<a href="http://mysite.com/thepage.html#target">Go to article</a>
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
While <a name="target"> is the most well known way to link to targets in a page, anything specifying an id would work, such as <div id="target"> or <h1 id="target">.

I don't use <a name="target"> because my a:hover CSS gets applies, creating an unwanted hover effect over something that is not a link.
 

lukoot

New Member
Messages
120
Reaction score
2
Points
0
OK sorry for being so dumb but i cant seem to get it right because i keep getting a 404 error code and it takes me to some silly site i just cant figure out what I'm doing wrong i seem to get this bit right.... <a name="target">Beginning</a> of the target article
but i must be doing something wrong on this bit.... <a href="http://mysite.com/thepage.html#target">Go to article</a>
the page I'm trying to link to is index.php?p=1_5 on my site or at least thats what it says in my link list
I'm using one of the x10 templates if thats any help I'm sure its just something silly that I'm not doing
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
OK sorry for being so dumb but i cant seem to get it right because i keep getting a 404 error code and it takes me to some silly site i just cant figure out what I'm doing wrong i seem to get this bit right.... <a name="target">Beginning</a> of the target article
but i must be doing something wrong on this bit.... <a href="http://mysite.com/thepage.html#target">Go to article</a>
the page I'm trying to link to is index.php?p=1_5 on my site or at least thats what it says in my link list
I'm using one of the x10 templates if thats any help I'm sure its just something silly that I'm not doing

From your red text, it seems like the ?p=1_5 would be part of a PHP script rather than target links. Do you have a live website link I can use to see what you have so far?
 
Last edited:

lukoot

New Member
Messages
120
Reaction score
2
Points
0
i found the answer to my question so you can lock this thread now if you wish
for anyone using one of the free templates heres what i did

On target page....

insert an anchor on the line were you want and name it what you wish for instants lukoot

link to target:

<a href="http://mysite.com/thepage.html#lukoot">Go to article</a>
you don't need to insert any of the code i have highlighted red
hope this helps.
 
Status
Not open for further replies.
Top