Anchor

Posted in: Newspaper
Post count: 12

Hello,
Could you please guide me on how to create an anchor using a Div tag? I need this functionality for my layout. Thank you!

  • This topic was modified 1 year by ppoteau.
Post count: 35449

Hi,
If you are referring to using anchor links, you can do it easily. You need to set an extra class on the element, for example, I set it on the “Single Post Comment” => https://i.imgur.com/EewW11X.png and set the class on the element icon or button, in Scroll to class => https://i.imgur.com/O3x7xpV.png -> https://imgur.com/xqIOgu0
Thank you!

Post count: 12

Hello,
It’s not working for me. I entered the exact code and it doesn’t work. Can you send me a short video of the steps? Thanks

  • This reply was modified 1 year by ppoteau.
Post count: 35449

Hi,

I will do my best to try to explain it again. This solution will work only when you are on that page.
1. Using tagDiv Composer – https://i.imgur.com/zlZijIf.png select the element you want to scroll to and set a class – https://i.imgur.com/uPV1adq.png
2. Add a button and in section “scroll to class” set that class – https://i.imgur.com/mz1C0qU.png save the setting and the anchor will work.

There re also other ways to add anchor links using the editor on articles content – https://www.wpbeginner.com/beginners-guide/how-to-easily-add-anchor-links-in-wordpress-step-by-step/

Thank you!

Post count: 12

Hi Calin,
Thanks a lot for your help. It works.

Pierre P.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.