How To Use Anchor Links On Page Code?

I'm just creating an FAQ page and I'd like to have a link to all the questions at the top of the page that links to the right answer below using anchors (html ID tags), but it doesn't seem to work. It inserts the "#id in the URL, but doesn't scroll the page to it.

Is there a trick to getting anchors to work?

Please provide a code example of what you’re doing.

I just noticed that every time I save, it strips all my "id" tags in my html. I tried all the different wysiwyg editors and also "none", but they are still stripped.

This is what I was trying:

Test
...
Section example

Is there any reason it doesn't allow id tags? If not, how would I create anchor points in my page then?

I just noticed that every time I save, it strips all my "id" tags in my html. I tried all the different wysiwyg editors and also "none", but they are still stripped.

This is what I was trying:

Test
...
Section example

Is there any reason it doesn't allow id tags? If not, how would I create anchor points in my page then?

Hello!

Just tried on demo and it's working. Do you place it in the code mode?

Try to open config.local.php file and replace

'sanitize_user_html' => 'auto',

with

'sanitize_user_html' => false,

Try to open config.local.php file and replace

'sanitize_user_html' => 'auto',

with

'sanitize_user_html' => false,

Thanks, I just tried that but it's still stripping the id tags.

I don't know if everyone gets this message or not, but ever since I tried Redactor 2, I get this popup every time I save some html (even if I set the wysiwyg editor to none):

Notice: Some HTML tags that you have used were cut off because of the restrictions on inserting HTML tags such as , 

I just tried on the CS-Cart demo and it doesn't strip the tags, so it's definitely a bug of some sort on my side.

Nevermind, I figured it out. I didn't notice there weren't any quotes on false, and it works.

What's the advantage of using 'auto', and why does it get set to default on customers' stores, but not on the cs-cart demo store?

Nevermind, I figured it out. I didn't notice there weren't any quotes on false, and it works.

What's the advantage of using 'auto', and why does it get set to default on customers' stores, but not on the cs-cart demo store?

I do not know answer on this question. Possibly sanitising is related with the server configuration somehow