Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1007077
    Reachout-Global
    Participant

    Hello,

    I’m getting a parse error message after making some changes in the child theme folder
    Parse error: syntax error, unexpected ‘<‘ ………………./wp-content/themes/x-child/functions.php on line 26
    Could you please help?

    Thank you

    #1007089
    Christopher
    Moderator

    Hi there,

    Please share the code you have in functions.php file so we can take a closer look.

    Thanks.

    #1007135
    Reachout-Global
    Participant

    Thank you for the prompt reply.

    I can’t even log in back to my wordpress. I was trying to modify my search results page and copied this to my child theme folder:

    <?php

    // =============================================================================
    // VIEWS/INTEGRITY/WP-INDEX.PHP
    // —————————————————————————–
    // Index page output for Integrity.
    // =============================================================================

    ?>

    <?php get_header(); ?>

    <div class=”x-container-fluid max width offset cf”>
    <?php if ( is_search() ): ?>
    <div class=”x-main full” role=”main”>
    <?php else: ?>
    <div class=”<?php x_main_content_class(); ?>” role=”main”>
    <?php endif ?>

    <?php x_get_view( ‘global’, ‘_index’ ); ?>

    </div>

    <?php if ( !is_search() ): ?>
    <?php get_sidebar(); ?>
    <?php endif ?>

    </div>

    <?php get_footer(); ?>

    #1007185
    Christopher
    Moderator

    Hi there,

    Please update your code to :

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/WP-INDEX.PHP
    // —————————————————————————–
    // Index page output for Integrity.
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
    <div class="x-container max width offset cf">
    <?php if ( is_search() ): ?>
    <div class="x-main full" role="main">
    <?php else: ?>
    <div class="<?php x_main_content_class(); ?>" role="main">
    <?php endif; ?>
    
    <?php x_get_view( 'global', '_index' ); ?>
    
    </div>
    
    <?php if ( !is_search() ): ?>
    <?php get_sidebar(); ?>
    <?php endif; ?>
    
    </div>
    
    <?php get_footer(); ?>

    Hope it helps.

    #1008505
    Reachout-Global
    Participant
    This reply has been marked as private.
    #1008560
    Rupok
    Member

    Hi Sonu,

    You don’t need to access WordPress site and it’s same for us. You need to update the code through FTP File Manager or cPanel. Let’s login with FTP and change the code.

    Thanks

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