• Hello,

    I found a bug in the EOC plugin, if i enable any child theme the plugin removes any ids in headings used on wp-block-column. For example, with the normal theme enabled i have this html output:

    <div class="wp-block-column is-vertically-aligned-top is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:80%"><h3 class="wp-block-heading"><span class="ez-toc-section" id="Product_Name_From_TOC"></span><a href="

    and after i enable the child theme the plugin does not work anymore and removes the <span class=”ez-toc-section” id=”Product_Name_From_TOC”></span>

    this happens only on headings inside wp-block-column, if you want you can test it with neve theme, but the problem i have is on every theme not only on neve

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Magazine3

    (@magazine3)

    Hi, thank you for reaching out to us. We have checked on our end, but we did not find any issues with auto-insertion. Could you please confirm how you are adding this? Are you using a shortcode for auto-insertion or the sidebar for adding it?

    Thread Starter mariustpz

    (@mariustpz)

    I’m not using any shortcode, i use auto insertion into articles.

    I don’t think you checked well, give me a email address and i can send you a link to see what i’m talking about. You need to use the wordpress columns to see the problem, because outside the column it works well. And also you need to enable child theme.

    Plugin Author Magazine3

    (@magazine3)

    Hi, thanks for reaching out to us and we apologize for the delayed response. Could you please check if this option once: https://paste.pics/Q2KNV

    1. Go to Toc setting.
    2. Scroll down and you will find “Generate TOC link ids” option.
    3. Enable that option once and try.

    Please give it a try and if you still encounter the same issue please let us know.

    Thread Starter mariustpz

    (@mariustpz)

    I enabled that option but still doesn’t work.
    Like i said, they work on normal headings, only on headings inside wp column is the problem, and only with child theme enabled. I tested on three more themes.

    Plugin Author Magazine3

    (@magazine3)

    Hi, could you please share a video demonstrating the steps you are taking? It would be greatly helpful if you could provide a video of the process on your end, as it will make it easier for us to understand and offer a quick solution.

    Thread Starter mariustpz

    (@mariustpz)

    Hello,

    Sorry for my late response.

    After i investigated more on this, i found that the problem is caused by a thid party function that i use in my child themes, on all my websites. That function is this:

    function im_formatter($content) {
    $replace = array(" noreferrer" => "" ,"noreferrer " => "");
    $new_content = strtr($content, $replace);
    return $new_content;
    }
    add_filter('the_content', 'im_formatter', 999);

    If i add this in functions.php the toc ids are gone only headings that they have links added with norefferer (default in wordpress)

    The thing is that this function is essential for many websites since wordpress don’t give us an option to remove norefferer from the links and we use afiliate links that need the referral.

    Can you check and see if you find the problem and if it has a solution? Because TOC is necesary and this function need to replace only the noreferrer tag…

    Plugin Author Magazine3

    (@magazine3)

    Hi, We apologize for the delayed response. We are checking this concern and will provide you with an update shortly. We appreciate your patience in the meantime.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘The id is gone on wp block column on child themes’ is closed to new replies.