• Resolved Adam

    (@servicesportal)


    I use shortcode [ez-toc] in materials. With ANY plugin settings it scrolls up or no works at all.
    Generate TOC link ids – does not help
    Disable TOC in RestAPI – does not help
    Fix Out of Memory / 500 Error – does not help
    Disabling cache, clearing cache a million times – does not help.
    How to solve the problem? or should I look for another plugin instead?

    • This topic was modified 5 months, 1 week ago by Adam.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Akshay A

    (@akshaycode1)

    Hi, we have checked on our end and found no such issues. It seems there may be a conflict on your side with the theme and plugins. Please check for any conflicts as this could be causing the problem.

    Thread Starter Adam

    (@servicesportal)

    I disabled all plugins and your plugin still scrolls up.
    the thing is that the settings in the plugin do not work

    michaeltrotz

    (@michaeltrotz)

    I am finding the same thing as the topic starter. Thanks.

    michaeltrotz

    (@michaeltrotz)

    I am using the Kadence Theme. Could I ask which theme the opening poster is using?

    Thread Starter Adam

    (@servicesportal)

    woodmart i use.

    But I don’t think the problem is with the theme, I installed this plugin on my other site, it works there. Both sites have the same plugins, the same theme, I made both sites.. So I don’t know why it doesn’t work.

    • This reply was modified 5 months ago by Adam.
    Plugin Support Akshay A

    (@akshaycode1)

    Hi, could you please share a short video of the steps you’re taking and the issue that occurs afterward, so we can check?

    Tim

    (@greller)

    Same issue here. How were you able to fix it?

    Tim

    (@greller)

    I now set the IDs for each headline automatically via the functions.php:

    function custom_sanitize_title($title)
    {
    $title = strtolower($title);
    $umlauts = [
    '?' => 'ae',
    '?' => 'oe',
    'ü' => 'ue',
    '?' => 'ss',
    '?' => 'ae',
    '?' => 'oe',
    'ü' => 'ue',
    ];
    $title = strtr($title, $umlauts);
    $title = preg_replace('/[^a-zA-Z0-9]+/', '-', $title);
    $title = preg_replace('/-$/', '', $title);
    return $title;
    }

    add_filter( 'the_content', 'add_ids_to_header_tags' );
    function add_ids_to_header_tags( $content ) {
    $pattern = '#(?P<full_tag><(?P<tag_name>h\d)(?P<tag_extra>[^>]*)>(?P<tag_contents>[^<]*)</h\d>)#i';
    if ( preg_match_all( $pattern, $content, $matches, PREG_SET_ORDER ) ) {
    $find = array();
    $replace = array();
    foreach( $matches as $match ) {
    if ( strlen( $match['tag_extra'] ) && false !== stripos( $match['tag_extra'], 'id=' ) ) {
    continue;
    }
    $find[] = $match['full_tag'];
    $id = custom_sanitize_title( $match['tag_contents'] );
    $id_attr = sprintf( ' id="%s"', $id );
    $replace[] = sprintf( '<%1$s%2$s%3$s>%4$s</%1$s>', $match['tag_name'], $match['tag_extra'], $id_attr, $match['tag_contents']);
    }
    $content = str_replace( $find, $replace, $content );
    }
    return $content;
    }
    Plugin Support Akshay A

    (@akshaycode1)

    Hi @greller , could you please share the URL where you need assistance so we can take a look?

    @akshaycode1 the page is not public yet. But for now my fix works fine. I assume it should usually generate the IDs automatically?

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