• I have a page with questions on the top. I want to link each question to the answer that is below all the questions on the same page.

    I know my code is correct. After I entered the first two questions, I previewed the page and the anchors worked.

    As soon as I add a third question, the first two don’t go to the right spot on the page. It jumps to slightly under where it is supposed to jump. When I add a fourth, the same thing. It only jumps correctly to the 3rd and 4th question. Basically, the anchors will only work on 2 questions.

    Here’s an example of the code:

    How long does concrete need to cure before tile can be installed?

    How long does concrete need to cure before tile can be installed?

    I tried this on one page copying code that I know works from my site that’s currently in Dreamweaver. Then I did a second page and typed everything from scratch. Both pages have the exact same problem.

    Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Can you provide a link to the page?

    Thread Starter djliefer

    (@djliefer)

    The website is not launched yet, but here’s the link to the current website that is done in Dreamweaver that works the way it’s supposed to. This same code does not work in WordPress (as stated above, it only works if you have only 2 links/anchors).

    https://www.tileusa.com/Concretecuring_faq.htm

    Any advice or solution is appreciated!

    Thanks!

    Phil

    (@owendevelopment)

    Personally, I’d make sure your anchor tags are all correct as missing one out will break content from that point onwards.

    I’ve used 100+ on a single page before with WordPress and it worked great.

    We’d need to see the page with problems in WordPress (not the Dreamweaver example) to check if there are errors in the html before anyone can give advice.

    Thread Starter djliefer

    (@djliefer)

    Is the word “and” above supposed to link somewhere. It doesn’t.

    The html is definitely correct. I’ve created two pages and they both do the same thing. Once I add more than 2, the first 2 jump slightly below.

    Is there anyway for you to look at the unlaunched page without me giving you our admin password? I just don’t want to post that where everyone can get it. If not, I can probably create these pages without the anchors and then when it’s launched, I can do just one page with the anchors and post it again.

    Also, I’m using WordPress with the Headway theme. Don’t know if that has anything to do with it.

    I have seen other posts where people had the same problem, but there was never a solution provided.

    I’m going to try to post that code again putting it between ‘backticks’ since I didn’t do that last time.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Phil

    (@owendevelopment)

    No, the ‘and’ was added by mistake and now corrected.

    You can use pastebin: https://wordpress.pastebin.com/ to upload the code for others to check.

    Thread Starter djliefer

    (@djliefer)

    I have uploaded the code to pastebin. The past is called TCNA/ANCHOR CODE.

    Thanks!

    Phil

    (@owendevelopment)

    It seems ok. It works on my end.

    The only thing I could suggest is to add huge spaces between each secion in the code with
    tags like this:

    You can see that it is not possible to definitively state how long the concrete should cure before tiling.
        <br/>
             <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
              <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
         <br/>
        <a name="although"></a><strong>Although it may not be possible to say for sure, what is a typical period for the concrete to cure?</strong>
         <br/>
        Many people suggest a minimum cure of 28 days under normal conditions - although, most thinset manufacturers say you may get away with 14 days using a premium latex modified thinset. There are risks though to tiling too soon - as the slab continues to cure, it will continue to shrink as it hydrates and the excess moisture evaporates. This places the tile and thinset under compressive stress. A premium thinset can better accommodate this stress and compressive force.
         <br/>

    Doing this seperates the content so that the browser window scrolls down and it’s easier to tell if it’s working or not. When I first checked your code in a html doc it looked like it was broken, however when I added the spacing in, I could easily tell it worked.

    eg, anchor links in 1 paragraph is hard to test as there’s not huge amounts of content to scroll past. Does this make sense?

    Thread Starter djliefer

    (@djliefer)

    I added the break codes between each one. It doesn’t make a difference. I’ve posted it again in the pastebin. Name it the same but a 2 after it.

    If I added a bunch of break code there would be too much space between each item. Any other suggestions?

    I don’t understand why something where the code is correct doesn’t work.

    It works fine in Dreamweaver and it’s the exact same code.

    Thanks for your help!

    Phil

    (@owendevelopment)

    Remove the break codes once you’ve tested it – it’s for testing purposes only.

    Ideally need to see the source from the WordPress version to diagnose the issue. Maybe pastebin that if poss?

    Thread Starter djliefer

    (@djliefer)

    What do you mean by the source from the WordPress version?

    I pasted the code from WordPress into that paste bin.

    And as I said the break code doesn’t change anything.

    Thanks!

    Phil

    (@owendevelopment)

    Oh ok.

    This is weird. Never seen this before. Are you using any plugins that could interfere with links?

    Thread Starter djliefer

    (@djliefer)

    These are my current active plug-ins:

    Adminer
    Akismet
    amr users
    Cart66 Professional
    Gravity Forms
    Gravity Forms Directory & Addons
    Gravity Forms PayPal Add-on
    GTranslate
    List Yo’ Files
    Members List
    Members Only
    Register Plus Redux
    s2Member
    Sidebar Login
    Tidy Up
    Wordpress User Frontend
    WP Hide Dashboard
    WP Minify

    Thanks!

    Phil

    (@owendevelopment)

    1. Turn all plugins off
    2. Check site for anchor links working?

    If working, then turn each plugin back on and check site after each one to help eliminate which plugin causes the issue.

    If you turn all plugins off and still doesn’t work, try changing theme to default in order to rule out any theme-specific interferance.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Anchors Don't Work’ is closed to new replies.