yogeshyadav20
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Hiding prices for specific locationput this code in theme’s functions.php file
Forum: Fixing WordPress
In reply to: Whole site 404. cant access wp-admin dashboardDelete .htaccess
type in domain.com/wp-login.php
login.
Dashboard -> Settings -> Permalinks -> Save. (just automatically recreates your .htaccess again).
If the problem persists. Try disabling plugins. Enable plugins 1 by 1 until the problem occurs again. That will narrow down the faulty plugin.
Forum: Fixing WordPress
In reply to: Error installing pluginsHi there
in your wp-config.php file
define(‘WP_HTTP_BLOCK_EXTERNAL’, false);
set it to false and try again
Forum: Fixing WordPress
In reply to: Adding a category button.Hi There
your site url is not running
see the bellow article, hope this is what you are looking for
https://easywpguide.com/wordpress-manual/appearance/updating-the-menu/adding-a-new-menu-item/#:~:text=To%20add%20a%20new%20Page,current%20list%20of%20menu%20items.
or
https://www.wpbeginner.com/beginners-guide/how-to-add-navigation-menu-in-wordpress-beginners-guide/thanks
- This reply was modified 3 years, 4 months ago by yogeshyadav20.
Forum: Fixing WordPress
In reply to: Hamburger dropdown menu not showingHi @partaim
try out something like this
@media(max-width:525px){ .navbar-collapse.collapse.show-hide-nav { display: block !important; } } jQuery('.toggle-mobile').on('click', function () { jQuery('#hongo-navigation-menu-1').toggleClass('show-hide-nav'); });
Forum: Fixing WordPress
In reply to: Disable payments for productsHi @piotrbroda
add_filter( 'woocommerce_available_payment_gateways', 'filter_gateways', 1); function filter_gateways( $gateways ){ // Not in backend (admin) if( is_admin() ) return $gateways; // Storing special product IDs in an array $non_pp_products = array( 496, 484 ); // Needed variables $is_non_prod = false; $is_prod = false; $count = 0; foreach ( WC()->cart->get_cart() as $cart_item ) { // count number of items if needed (optional) $count++; $product = $cart_item['data']; if( ! empty($product) ){ $product_id = method_exists( $product, 'get_id' ) ? $product->get_id() : $product->id; if ( in_array( $product_id, $non_pp_products ) && ! $is_non_prod ) $is_non_prod = true; if ( !in_array( $product_id, $non_pp_products ) && !$is_prod ) $is_prod = true; } } if ( $is_non_prod && ! $is_prod ) // only special products { // unset only paypal; unset( $gateways['paypal'] ); } elseif ( $is_non_prod && $is_prod ) // special and normal products mixed { // unset ALL GATEWAYS unset( $gateways['cod'], $gateways['bacs'], $gateways['cheque'], $gateways['paypal'], $gateways['stripe'], $gateways['under-review'] ); } elseif ( ! $is_non_prod && $is_prod ) // only normal products (optional) { // (unset something if needed) } return $gateways; }
thanks
Forum: Fixing WordPress
In reply to: comment box font change possible?see the bellow article
https://hostiper.com/fix-wordpress-comments-not-showing-on-posts-or-pages/
Forum: Fixing WordPress
In reply to: Hiding prices for specific locationif that code is not working, then try out this one
add_filter( 'woocommerce_get_price_html', 'country_geolocated_based_hide_price', 10, 2 ); function country_geolocated_based_hide_price( $price, $product ) { // Get an instance of the WC_Geolocation object class $geo_instance = new WC_Geolocation(); // Get geolocated user geo data. $user_geodata = $geo_instance->geolocate_ip(); // Get current user GeoIP Country $country = $user_geodata['country']; return $country == 'GB' ? '' : $price;
and update your country handle in the place of GB
Forum: Fixing WordPress
In reply to: Hiding prices for specific locationTry this –
Go to Woocommerce > Settings > Zone Pricing > Zone
to configure zones you want to hide and the rates to whatever value which are none 0.And open this file in plugin folder:
woocommerce-product-price-based-on-countries/includes/class-wcpbc-frontend-pricing.phpFind line 36,
paste following code://do_action( 'wc_price_based_country_frontend_princing_init' ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
Forum: Fixing WordPress
In reply to: comment box font change possible?okay, can you please wait until your site in under maintenance mode
actually i am unable to see anythingsForum: Fixing WordPress
In reply to: comment box font change possible?Hi @martin177
.comment-reply-title { font-family: Arial,sans-serif; }
link your font in theme and after that use css like above
let me know, if anything else
Thanks
Forum: Fixing WordPress
In reply to: Hiding prices for specific locationForum: Fixing WordPress
In reply to: Wrong URL opensHi @joemcua
re save your permalink setting and check again, hope this will be fixed
Forum: Fixing WordPress
In reply to: Text in Cover Image.wp-block-cover__inner-container {
color: #fff;
}add color:#fff; in your previous CSS
- This reply was modified 3 years, 4 months ago by yogeshyadav20.
- This reply was modified 3 years, 4 months ago by yogeshyadav20.
Forum: Fixing WordPress
In reply to: WooCommerce Product Templateand remember one think if you are using
id="something"
then it will show all productsso if you want to fix your issue then update your code, otherwise your choice
thanks