Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1288011
    keschuettler
    Participant

    I was trying to add some meta tag to the functions.php in the theme editor for a child tag. Now getting

    Parse error: syntax error, unexpected '<', expecting end of file in /home/kendri25/public_html/wp-content/themes/x-child/functions.php on line 22

    Undid everything so that the code was

    <?php
    
    // =============================================================================
    // FUNCTIONS.PHP
    // -----------------------------------------------------------------------------
    // Overwrite or add your own custom functions to X in this file.
    // =============================================================================
    
    // =============================================================================
    // TABLE OF CONTENTS
    // -----------------------------------------------------------------------------
    //   01. Enqueue Parent Stylesheet
    //   02. Additional Functions
    // =============================================================================
    
    // Enqueue Parent Stylesheet
    // =============================================================================
    
    add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
    
    // Additional Functions
    // =============================================================================

    No dice. Can’t get it to stop throwing that error.

    #1288118
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Is that the only code you have on the functions.php file? I am not seeing any error on that.

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1288011 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>