Problem with scripts in Functions Wordpress

Asked

Viewed 9 times

0

hello I’m having trouble with the functions.php of wordpress when registering a script from bootstrap he doesn’t recognize the syntax wp_enqueue_script and sends me the following mistake:

Parse error: syntax error, unexpected identifier "wp_enqueue_script" in C:\xampp\htdocs\wordpress\wp-content\themes\george\functions.php

In the following code:

<?php 
 
    function george_wp_styles(){

        wp_enqueue_style('style_css', get_stylesheet(  ) )


        wp_enqueue_script('boot1_js', 'https://code.jquery.com/jquery-3.3.1.slim.min.js')
        wp_enqueue_script('boot2_js','https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js')
        wp_enqueue_script('boot3_js','https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js')

}
add_action('wp_enqueue_scripts', 'george_wp_styles');

1 answer

1

Is missing ; after wp_enqueue_style and wp_enqueue_script.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.