WordPress.org

Forums

Link to Fragment Indentifier (2 posts)

  1. FreeXenon
    Member
    Posted 5 years ago #

    I am a novice to themeing/php, but I do have a programming background and I am a web developer.

    I have the following code in the header.php of the theme I am working on:
    <a href="#content">go to main content</a>

    and the resultant code on a live page is"

    <a href="www.domain.com/#content">go to main content</a>

    How do I keep it from adding the domain?

    Thanks all.

  2. FreeXenon
    Member
    Posted 5 years ago #

    The theme I am creating is XHTML 1.1 so named anchors will not validate.

    In doing some research I have seen some mention of the possibility of finding an Absolute Link plugin to help solve this. I will have more time to check on this tonight, I think.

Topic Closed

This topic has been closed to new replies.

About this Topic