@Christopher-Rodriguez said in More anchor link in 1 text block:
I am having the same issue and question. Did anyone figure out how to add an anchor link to words inside of a sentence or paragraphs? The answers given are not answering the original question. Yes, I can add a manual anchor but it will not act the same because it will direct to the link and what I am looking for is for a scroll up/down to the anchor section without loading a new page to direct to the anchor section.
Well I can show you a solution with code :
1 - Open code edition on your text paragraph and wrap and set an id to the part you want to be clickable
bb21af25-1398-403c-bc97-c7999e9bcf47-image.png
2 - Define an anchor to your target section
27d3d743-6f75-43a4-8c59-6e72e6b14250-image.png
3 - Drop a jQuery codeblock
6be36312-d7a8-418d-a3ec-9ffb1e37394c-image.png
4 - Double click on it and write this code in the jQueryLoaded curly brackets
$("#myLink").click(function () {
goToAnchor("helloanchor");
});
83cbe1de-025a-4151-99f1-f0c5da2aca50-image.png
5 - Save & Preview, and voilà, it's working without page reload!