I am looking for a way put some anchor points inside the CMS rich text.
I have CMS site with some large rich text block including many paragprahs. I just need to make some anchors to be able directly scroll to the section using the url url.com/page#example_id_scroll
Help me please.
Here is my public share link: LINK
(how to access public share link)
That would be awesome. As far as I know though, you can’t set specific id’s to any elements inside of a RTE.
I was thinking about pasting the transparent background, set-up the URL on the image and make the URL like: #scroll-one. But it is not working.
I am looking for any workaround tips
Let me know if this helps:
Thanks man, this solution I will use in different scenario. However right now I am looking to apply the anchors directly in CMS collection text.
Gotcha. Yeah I don’t believe that is currently possible.
What I would do is create a wishlist item for that feature here:
This way people can vote on it and Webflow will see it.
I could see that working in theory.
If you could try that would be awesome. I am not so strong in using js to build it up. You’ll safe so much lives
Not sure when I can possibly have a resolution though…
I wrote a post on my blog showing how to create a button inside of a rich text element based on a certain condition. This could easily be modified to achieve the same thing that you’re looking for. Here’s the blog post => https://wfhow.com/buttons-in-rich-text/ with instructions.
I’m trying to figure this out too! I wanted to work around it by creating a static webpage and then park it under /blog.
Is that possible?
@webdev Jeff that’s pretty awesome! Did you read my reply up a few posts (the paragraph that starts with “unless…”?
Thanks. You can do almost anything with that approach. Yes, I did read your post, that is similar. The issue is not the JS, just coming up with a consistent target.
Exactly! That’s what I was thinking!
So could you translate it to the anchor point? I don’t know exactly what to do with the code
A static page can’t be a child of a collection slug. So you can’t do that.
@petrbilek - Your needs are specific to a client project I assume. I am available for freelance work. PM me if you are interested.
Hey, i know this is an old post but it’s really easy to achieve nowadays, if you just want to scroll to specific paragraphs or anywhere inside a CMS rich text block.
You have to create a html embed object inside the rich text field in your CMS and create a div block with any id.
<div id=your-custom-id style="height: 0px;"></div>
Then you just have to set the link to
#your-custom-id and it’s done.