• This is hard to explain so i will do it mainly with images, but the problem is that my anchor links direct my visitors to the anchor text but below it, it doesnt show the anchor text and i want them to see it without scrolling up. Example:

    http://puu.sh/2GSaR.png
    The red circle is my anchor link, and what the arrow is pointing is my anchor text.

    This is what happen when i click my anchor link:
    http://puu.sh/2GScR.png (cant see the anchor text, i want it to be visible without scrolling up)

    This is what i want to happen (and see in all sites but mine):
    http://puu.sh/2GSdZ.png (i manually scrolled up, i want the anchor link to show the page directly like this)

    PD: forgive me for my bad english, is very hard for me to explain myself on this language, as you can see my main language is spanish.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Without seeing the actual code on your page, there’s really no way to help with something like this. Can you post a link to your site?

    Thread Starter rey.abc

    (@reyabc)

    Alright, i just uploaded it today (i have all the articles written in word), so you’re going to find a very empty webpage right now lol.

    http://masamagra.com/pesas-para-principiantes/ <– that’s where the issue lies.

    It actually seems to work okay in Firefox and Chrome, BUT you do have some coding problems – most critically that you’re using “name” instead of “id” for the linked to element. (name is deprecated – so you really should not use it even if it works in some browsers)

    It also looks like you have some messy stuff going on – if you are copying from Word, that’s likely the problem – Word (or converted from Word) really makes a mess of HTML. So for example your page has:

    <h2 class="has-shade" align="left">
    <a name="consejos-iniciar-pesas">
    <span class="header-shade"></span>
    </a>
    Consejos para iniciarse en el levantamiento de pesas
    </h2>

    A better (and valid code) way to do that would be:

    <h2 class="has-shade header-shade" id="consejos-iniciar-pesas">
    Consejos para iniciarse en el levantamiento de pesas
    </h2>

    Thread Starter rey.abc

    (@reyabc)

    You’re right its working fine, it was the admin bar that covered my anchor text… did not happen when i logged out (im such a noob…)

    About the other thing that you’ve found: i know nothing about coding to be honest (this is why i choose a CMS (in my case, wordpress). That would not happen if i added the text manually? If i add it manually, instead of saying “name”, it would appear as “id”?

    I re-typed everything in that page, did not use the insert as word or copied/pasted as i was doing before, could you please check the page now to see if those errors you found still persist? http://masamagra.com/pesas-para-principiantes/

    Thank you!

    Those are still using “name” rather than “id” for the anchor – and that’s deprecated – may not work forever. So I’d really encourage you to change all those “name”s to “id”s.
    The syntax is still wrong too – you don’t need a tags in the “end” pieces – those are not links.

    Look carefully at how the example I gave above is coded.

    Where are you copying these from?

    Thread Starter rey.abc

    (@reyabc)

    I’m typing the content directly to the WP post using the , im not copying it from the word (taking a lot longer to pass all my posts to WP because of this) so i dont know what im doing wrong, to me it seems more like an error of WP. WP does this by default? (all this errors you’re telling me about), do all other webmasters that use WP have to fix all of that? Could it be the plugin tinymce im using to give format to the text? or could it be my theme?

    Theorically im doing everything right: Typing my content directly to my WP posts, im not copying then pasting it from my word documents. Now i am very lost. And incase it matters im using the visual editor of WP, not the text editor since i know nothing of coding and preffer WYSIWYG.

    This is what i mean by visual editor http://puu.sh/2Hb3E.png

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Anchor text issue’ is closed to new replies.