Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1346419

    Hi, could you help me with:

    I have a problem with displaying JS script in CODE BLOCK element if this element is inserted into Tabs element. If the Code Block is inserted separately everything is fine but for Tabs it does not work.

    Thanks for reply

    Jakub Doležal

    #1346436

    Hey Jakub,

    Thank you for the inquiry.

    You may need to load the script using the wp_enqueue_script function instead of placing it directly in the code block element. You can also create a dedicated shortcode for the custom script.

    // https://developer.wordpress.org/reference/functions/wp_enqueue_script/

    To create a custom shortcode, please check this documentation.

    // https://codex.wordpress.org/Shortcode_API

    Best regards,
    Ismael

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