[Support request] What’s the best way to add javascript?

Home Forums Support [Support request] What’s the best way to add javascript?

Home Forums Support What’s the best way to add javascript?

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

    I see you recommend the Simple CSS plugin for adding CSS. This has a nice section on each page where I can add CSS directly from the editor for any particular page. Is there a way to do this with javascript too?

    Also, I am a little confused about the best way to add css to a specific page. Should we use a hook element or simple css? Which is the best way?

    #2030253
    Ying
    Staff
    Customer Support

    Hi Robert,

    You can use a hook element to add JS:

    1.Choose wp_footer as hook name.
    2.Choose where you want it to load in the location section, eg, pages > page A
    3.Wrap your JS code like this <script> your code </script>, enter it in to the content area.

    For CSS, simple CSS is easier to use and manage.

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