• when i updated enqueue.php file and after adding styles and js file when i run it it shows me: Parse error: syntax error, unexpected ‘;’, expecting ‘,’ or ‘)’ in C:\xampp\htdocs\wordpress\wp-content\themes\portfolio\inc\enqueue.php on line 6

    and my code is :

    <?php 
    
    require_once(get_template_directory().'/inc/enqueue.php');  //this is no 4 line
    
    ?>

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

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    What you posted does not have enough context. Standing alone it’s fine. Within its context, clearly there’s a problem. Please post everything from the start through to line 7.

    It looks like you are trying to require the file in which your code resides, which is invalid circular logic. Perhaps one file is of a child theme and you are requiring the parent file? In a general sense, that would be OK, but it shouldn’t be necessary if the parent theme is already requiring that file as a descendant of its functions.php code.

Viewing 1 replies (of 1 total)
  • The topic ‘Parsing error: Syntax Error’ is closed to new replies.