Byteknight Creations
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Astra] Mobile caching is affecting Desktop viewI faced same problem using different theme but when I disabled separate copy for mobile cache it solved. That confused me but it solved the issue..
That didn’t work for me..
for me i removed additioal / from the end eg. https://abc.com/ to https://abc.com and it worked.
Forum: Plugins
In reply to: [WooCommerce] Calculate shipping cost by cityThere are many regions which are far away and needs divided shipping within states.
For those who still facing problem, below solution may work.I added custom states in specific countries using below
Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update the theme.
Add your own or modify shipping states in WooCommerce.
Note: You must replace both instances of XX with your country code. This means each state id in the array must have your two letter country code before the number you assign to the state.
/** * Add or modify States */ add_filter( 'woocommerce_states', 'custom_woocommerce_states' ); function custom_woocommerce_states( $states ) { $states['XX'] = array( 'XX1' => 'State 1', 'XX2' => 'State 2' ); return $states; }
Source – Add / Modify States woocommerce
Forum: Plugins
In reply to: [WooCommerce] Calculate shipping cost by citySame problem, woocommerce doesn’t have an option to add custom location and calculate shipping cost by it.
Forum: Networking WordPress
In reply to: WordPress Sites all of sudden have broken imagesThat happened to me when i installed jetpack, somehow it improved everything as it says but broken almost every css and images. try deactivating jetpack.
Forum: Fixing WordPress
In reply to: Fatal error: Allowed memory size of 41943040 bytes exhaustedI had the same error yesterday and i was trying to figure out what messed up with my up and running website. turns out it was my recent plugin update which exhausted the limits. If you’re not looking to make changes to anything into wp-config then try de-activating your recently updated plugins.