• Resolved ildomandatore

    (@ildomandatore)


    I would like to put a different script on each post, how do I do it?

    How do I choose the options?

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

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

    (@diana_burduja)

    The Simple Custom CSS and JS plugin can be used to add a custom CSS or JS code on all the website.

    If you want a JS script on a specific post, then you can open the post for editing and add the JS script there. For example, with the Gutenberg editor you can use the Code block to add a JS script. With the Classic Editor you can switch the editor to “Text” mode and add the JS script there.

    Thread Starter ildomandatore

    (@ildomandatore)

    I use Gutenberg. I didn’t quite understand what to do. Don’t need the plugin?

    Plugin Author SilkyPress

    (@diana_burduja)

    Open the post for editing with Gutenberg. Top left corner there is a blue plus button. After clicking the blue plus button choose the “Code” block and insert it in the page. Write your JS inside the inserted “Code” block.

    Thread Starter ildomandatore

    (@ildomandatore)

    I don’t want to show the code, but to run it.
    https://postimg.cc/WdtTBJ4B

    Plugin Author SilkyPress

    (@diana_burduja)

    Sorry, my mistake. You need to use the “Custom HTML” block from Gutenberg instead of the “Code” block.

    Thread Starter ildomandatore

    (@ildomandatore)

    I already have the Custom HTML block. What do I put in it? The Div and the script or as I did, just the Div?

    Plugin Author SilkyPress

    (@diana_burduja)

    You can experiment around until you find what to put in it.

    I’ll close the topic now, as this is not an issue related to the Simple Custom CSS and JS plugin.

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

The topic ‘How do I put the scripts on a single post?’ is closed to new replies.