• Resolved gpwebnut

    (@gpwebnut)


    Hi,

    I have auto insert turned on, but then sometimes want to put it in a different place.

    When I use this shortcode [joli-toc] in a paragraph block, the table of contents does not use the theme font and size, and instead uses some other default.

    When I try and put the shortcode in a HTML block, the theme font and text size is used. But, it will then have two instances of the table of contents, and does not turn off the auto inserted version.

    Thanks for your help with this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter gpwebnut

    (@gpwebnut)

    I thought I had a fix by using the shortcode block, instead of a paragraph or html block. That fixed the formatting problem, but I still get two instances of the table of contents, meaning adding in a TOC manually does not turn off the auto TOC.

    • This reply was modified 5 years, 11 months ago by gpwebnut.
    Thread Starter gpwebnut

    (@gpwebnut)

    Part of the problem appears to be when I save the shortcut block as a resusable block, that is when I get two instances of the table of content. If I just use a regular block then I don’t get two instances.

    Plugin Author WPJoli

    (@wpjoli)

    Hi,

    It is indeed better to use the shortcode with the shortcode block.

    Have you managed to solve your problem by the way ?

    The way the plugin works is, if the shortcode is detected within the raw content (before the shortcode are actually processed), then it is supposed to override the auto insert.

    My guess is a reusable block does not output the actual shortcode in the raw content, but only a reference to that block without its actual content. Then the shortcode check would fail in this case.
    I have to verify this behaviour more in details though. In the mean time I would recommand that you use a standard shortcode block.

    Thread Starter gpwebnut

    (@gpwebnut)

    Yes, it does seem that it will not work with a reusable block. Not a big deal. Thanks for your help.

    Plugin Author WPJoli

    (@wpjoli)

    Glad to hear that.

    Thank you for your feedback!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Shortcut Issues’ is closed to new replies.