Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @michael123438.,

    Try this code

    function themeslug_enqueue_script() {
    	wp_enqueue_script( 'my-js', 'filename.js', false );
    }
    
    add_action( 'wp_enqueue_scripts', 'themeslug_enqueue_script' );

    When you say “script” what exactly do you mean? So far I’ve seen about 7 different meanings for that word on here, so some clarification would help.

    Thread Starter michael123438

    (@michael123438)

    Okay catacaustic. I mean I bought a php script from codecayon but don’t no how to upload it on my WordPress website

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

The topic ‘How to upload a script to my wordpress’ is closed to new replies.