• Hi, I have spent years creating a page that is an A to Z of the plants in our garden. When the plant title is clicked it opens with the plant profile. I have finally got the look that I am happy with. However, the finishing touch would be an alphabet bar at the top of the page. Click the required letter and it will scroll down to that point. Is this possible? Alistair

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Thread Starter acruickshank

    (@acruickshank)

    Hi Steve, thanks for this suggestion. This plugin requires a separate page for each letter to have been created. My A to Z is all on the one page. Any other suggestions would be appreciated. Alistair

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I understand. You’ll need to enter “anchor links” ahead of the first entry of each letter, then add links at the top of the page using the format #A, #B, etc.

    In your content, you’d do something like <div id="A"></div> as the anchor. You’ll need to use the editor in text mode to insert that.

    Thread Starter acruickshank

    (@acruickshank)

    I follow you regarding the anchor links. Do I forget about the plugin and add the alphabet manually to the top of the page.

    Thread Starter acruickshank

    (@acruickshank)

    I have had a go at this. I added an A B C Then in text mode I added <div id=”A”></div> changing the A to B etc I then copied this and linked it to B. The link when applied opens a page which says page cannot be found. Alistair

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Yes, do it manually.

    You did it wrong. Your menu bar should use <a href="#A">A</a> for the link. The anchor itself goes above or before the first “A” item.

    Thread Starter acruickshank

    (@acruickshank)

    Hi Steve, dont give up on me, I am an old geezer and slow to your standards.
    1 – I entered the anchor links A B C at the top of the page (hash tags I didnt use)
    2 – I am working on (B) In text mode for content I added <div id=”A”></div> replacing the uppercase A with a B
    3 – The menu bar link I used <a href="#A">A</a> I got page not found, I replaced the two uppercase A letters with B as i am working on B. still not found page.
    If you can stick with me I will continue working with B until I get it. Does the hash tags have some bearing on it, I have no understanding of these.
    4 – The menu bar link I add the code to the end of th url link for the page A to Z
    https://www.aberdeengardening.co.uk/diary/our-plant-list-a-to-z/%3Cdiv%20id=%22B%22%3E%3C/div%3E

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The menu bar link should be

    <a href="#A">A</a>

    which will jump you to

    <div id="A"></div>

    in the content.

    Thread Starter acruickshank

    (@acruickshank)

    Hi Steve, I have followed your instructions and I am still getting this message
    https://www.aberdeengardening.co.uk/diary/our-plant-list-a-to-z/%3Ca%20href=#A%22%3EA%3C/a%3E
    The menu bar link I have added on its own and also added at the end of the url for that page. It doesnt work either way.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You are clearly NOT following my instructions.

    The ABC at the top is NOT where the <div> goes. That’s where you use the <a> tag.

    Maybe a picture will help

    See https://cldup.com/u_UNHwGrvVr/MBHVen.png

    Thread Starter acruickshank

    (@acruickshank)

    On my site I have just clicked on (B) that is indeed where I placed the <a> tag and not the <div> Link below shows this if you look at the address bar. It would appear I am completely out of my depth, sorry to have bothered you.

    https://www.aberdeengardening.co.uk/diary/our-plant-list-a-to-z/%3Ca%20href=#A”>A

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Add an alphabet bar to page’ is closed to new replies.