Thank you so much Cristian!
I was looking for this a few moments before and your video and instructions are spot-on!
Great community and thank you once again!
Fellow Romanian bricks enthusiast
Hi @chrisianuibar and thanks for your help here! Is that workaround still needed with the specific url? Because as far as I know, absolute links are bad practice and should be avoided (see end of this site: HTML File Paths). If the domain or the URL changes, I would have to change every single button that links to it… Thought that’s why there is the “internal post” option in the dropdown.
Edit: Okey I just saw that relative paths are allowed here too. Still questioning myself why this is not integrated in the “internal post” option. Or have I overseen something here?
I don’t think that matters that much. WordPress saves the full permalinks in a GUID field in the DB anyway. So if you ever change your primary domain, you’ll always need to run a full search-replace for the old domain to the new domain. And this search-replace should also fix any such links you have on your buttons.
Also, the “internal post” generates a full URL on the front, as that’s WordPress’s default behavior. It just generates it on the fly.
I am new to WordPress so thanks for that explanation! In case of an Domain change I understand what you mean, but what if I change the slug of the page I linked to? When done with bricks page selection that would not change anything. When done with a relative/absolute link I would have to change that on each buttons instance… or have I misunderstood something here?
You are correct. For that use-case it’s better to use internal links, as absolute links will not auto-update.
The best rule is to avoid changing slugs once your page is published. It can be shared on other pages/social media etc and you might end up with a 404 for that. However even in that case, if you’re changing a popular page link you should add a 301 redirect for it.
I meant, that it scrolled to the anchor instead of jumping. There are css and js ways to do it, maybe it was a preset in an external template. Thanks for your answer :).
Hi, smooth scrolling is not working for us. We tried the native ID given to the section (Div), and also tried applying a custom ID via CSS ID field; but in both cases it jumps to the section on click, rather than scroll.