• Resolved vermilions

    (@vermilions)


    After customizing the look of the Table of Contents, when I click on the headings in the ToC of a blog post, it doesn’t jump to the section/achor point. The URL address does change to the correct anchor, for example: when I click on “Third Heading” in the ToC, the URL changes to https://example.com/blog/post1/#third-heading but it doesn’t jump down the page. It’s not working on the Desktop (Firefox) nor on the phone. How can I fix it? Thanks a lot in advance!

    My wordpress ver. is 6.6.1, theme is OnyxPulse ver. 1.0.2, php ver. 8.2.16.

    • This topic was modified 3 months, 2 weeks ago by vermilions.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter vermilions

    (@vermilions)

    Fixed the problem myself, had to add this snippet to the function.php:

    add_filter( 'block_editor_settings_all', function( $editor_settings, $editor_context ) {<br>$editor_settings['generateAnchors'] = true;<br>return $editor_settings;<br>}, 10, 2 );

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.