Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1284041
    ewatersupport
    Participant

    Hi,

    I recently created my custom codes in the main function.php. Since then, I downloaded the Theme X Child Theme, activated and tried to move the codes added, however it wouldn’t work.

    Is there something I need to do beforehand?

    #1284184
    Friech
    Moderator

    Hi There,

    Thanks for writing in! Can we take a closer look on your codes/functions.php? Please provide us with login credentials in private reply so we can take a closer look.

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

    Cheers!

    #1285180
    ewatersupport
    Participant
    This reply has been marked as private.
    #1285626
    Rupok
    Member

    Hi there,

    If that works within parent theme then should work within Child Theme as well. Are you getting any error? Make sure to keep the other codes intact on the Child theme’s functions.php.

    Let us know if you are getting any error.

    #1285630
    ewatersupport
    Participant

    No Error – Basically I cut and paste between the two functions.php and it works on the parent theme.

    There’s only one code in the child/functions.php which is the

    <?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' );
    
    
    #1285650
    ewatersupport
    Participant

    Ah found it. all solved.

    #1285710
    Friech
    Moderator

    Glad you sorted things out, feel free to get in touch with us regarding any further queries about the X|Theme and Cornerstone.

    Cheers!

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