Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #890136
    jnoora11
    Participant

    Hi X-team,

    Today i encountered error 500 but luckily my hosting provider able to solve it already.

    They told me that there was an error in using my X-Child theme hence they just use the x-theme instead to fix and make my site live again.

    Now I’m thinking how would i go back to use again a child theme, I’m doubting that if i use the child theme which is on my directory would give me again the same error 500?…

    Unsure of what to do, can you please help inspect the child theme which is on my theme directory. Please let me know if i can still use it back without any problem and if its not then kindly advice the work around how to make use of another x-child theme.

    I will send user name and credentials on a separate reply.

    TIA!

    #890146
    jnoora11
    Participant
    This reply has been marked as private.
    #890617
    Rupok
    Member

    Hi there,

    Thanks for writing in! If the error caused by Child Theme then check the code of your Child Theme. Since the code on Child Theme is custom code by you so you should know better about this.

    Cheers!

    #890699
    jnoora11
    Participant
    This reply has been marked as private.
    #891373
    Christopher
    Moderator

    Hi there,

    Please update your code in functions.php file to :

    function add_google_tag_manager_code(){
    ?>
    
    <!-- Google Tag Code starts here  -->
    
    <meta name="google-site-verification" content="kNIuzz-L3NvxfOx2XkPzgNLh7sBuPOStD9lgkaHTzEA" />
    
    <!-- Google Tag Code ends here -->
    
    <?php 
    }
    add_action( 'wp_head', 'add_google_tag_manager_code' );
    // End Add Google Tag Manager Code
    // =============================================================================
    
    /*adding social sharing buttons to woocommerce product pages */
    add_action( "woocommerce_product_thumbnails", "add_social_sharing");
    
    function add_social_sharing() {
      if ( x_is_product() || is_singular('post') ) {
        echo do_shortcode('[gap size="20px"][share title="Share this product" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true"]');
      }
    }
    
    add_filter( 'woocommerce_currencies', 'add_custom_currency' ); 
    
    function add_custom_currency( $currencies ) { 
    $currencies['AED'] = __( 'United Arab Emirates Dirham', 'woocommerce' ); 
    return $currencies; 
    } 
    
    add_filter('woocommerce_currency_symbol', 'add_custom_currency_symbol', 10, 2); 
    
    function add_custom_currency_symbol( $currency_symbol, $currency ) { 
    switch( $currency ) { 
    case 'AED': $currency_symbol = 'AED'; break; 
    }
    
    return $currency_symbol; 
    }
    
    /** change the YITH WooCommerce Featured Video embed string to include rel=0*/
    
    add_filter('woocommerce_single_product_image_html', 'add_yt_rel', 30, 1);
    function add_yt_rel($text) {
    $return = str_replace('wmode=transparent', 'wmode=transparent&rel=0', $text);
    return $return;
    }

    Hope it helps.

    #891466
    jnoora11
    Participant
    This reply has been marked as private.
    #892533
    Friech
    Moderator

    Hi There,

    That is your very own code with a little modification. On your functions.php file, replace all the code underneath the:

    // Additional Functions
    // =============================================================================

    With the modified code given above.

    Hope this shed some lights.

    Thanks.

    #893094
    jnoora11
    Participant

    Hi Friech,

    Thanks for the reply, done it already.

    Lastly, Im using child theme v.1.0 do i need to change my current child theme to the latest version you have now?

    Tnx!

    #893606
    Paul R
    Moderator

    Hi,

    No need to change it, it’s already the latest version.

    Thanks

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