Tagged: x
-
AuthorPosts
-
April 19, 2016 at 9:34 am #890136
jnoora11ParticipantHi 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!
April 19, 2016 at 9:39 am #890146
jnoora11ParticipantThis reply has been marked as private.April 19, 2016 at 1:53 pm #890617
RupokMemberHi 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!
April 19, 2016 at 2:43 pm #890699
jnoora11ParticipantThis reply has been marked as private.April 20, 2016 at 2:34 am #891373
ChristopherModeratorHi 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.
April 20, 2016 at 4:17 am #891466
jnoora11ParticipantThis reply has been marked as private.April 20, 2016 at 4:36 pm #892533
FriechModeratorHi 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.
April 21, 2016 at 1:17 am #893094
jnoora11ParticipantHi 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!
April 21, 2016 at 8:24 am #893606
Paul RModeratorHi,
No need to change it, it’s already the latest version.
Thanks
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-890136 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
