1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Anchor Problem

Discussion in 'Troubleshooting and Problems' started by bogus, Oct 19, 2011.

  1. bogus

    bogus Guest

    I want to create a Page with some FAQs
    At the end of the Page i would like to add an anchor that brings you back to the top.
    Also i would like to add an anchor to every topic ( click to the topic will move you to the content)
    But that´s not working. As soon as i add an anchor i do have the complete Board URL.

    "Top" will be http://www.brainlag.eu/#top
    Is there any solution or any other way i can solve that?

    Code:
    <div style="margin-left: 262px; margin-top: -10px">
        <div class="sectionMain">
            <h1 class="heading">FAQ Database</h1>
            <div class="primaryContent">
            <a name="top"></a>
                <img src="http://www.brainlag.eu/styles/wikiFlags/de.jpg"></img><b>Wie richte ich meinen BNC ein?</b></a>
                Alle wichtigen Daten bekommst du, nach erfolgreichem Request, von brainlag im Query.<br></a>
                <a href="#top">&uarr; TOP</a>
            </div>
        </div>
    </div>
    The Code is just an example, there will be much more content, why i would like to use anchors for an easier navigation.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Try this:

    Code:
    <a href="{$requestPaths.requestUri}#top">anchor</a>
    
     
    Skeletor and bogus like this.
  3. bogus

    bogus Guest

    Muchas Gracias ^^
    Works like a charm
     

Share This Page