Categories
CMS Magento Mastering Development

How to Edit Layout Update Xml for CMS Page in Magento 2?

I just migrated from Magento 1.9.3.4 to Magento 2.3.4, I noticed some of the page content is missing when I accessed the page that was created from cms page. Then I look at the cms page edit page, in M1 I can update the Page layout XML like this: But in M2 I can’t find […]

Categories
CMS Mastering Development Wordpress

Where do I remove admin order fields (unset doesn’t work)

I have built shop based on Woocommerce. In admin order, I need to disable state field. It shows state code, not full name, so it doesn’t really matter. When you enter certain order in admin page, you will get Billing and Shipping colums. So basically, this snippet should do, but it doesnt. It removes fields […]

Categories
CMS Mastering Development Wordpress

Add a “Received” Button to Customer Account Order Actions

I want to Add a “Received” Button to Customer Account Order Actions. I can’t seem to find how to do it and how it could work.I tried adding this code to functions but I can’t understand how it works and what I should make it work as a “Received” button for customers function sv_add_my_account_order_actions( $actions, […]

Categories
CMS Mastering Development Wordpress

Best free spam protection plugin? [closed]

I know this has been discussed a lot. But I can’t find a list of the BEST free spam protection plugins in 2020. I’m getting a lot of spam from my contact forms. I can’t afford to pay for Akismet. And I can’t use it for free since this is for a commercial website. Is […]

Categories
CMS Mastering Development Wordpress

Is there a similar plugin for woocommerce that can optimize the filter [closed]

I use wordpress The attribute filter of woocommerce, when used, is loaded for at least 2 seconds, which is very slow. Does anyone know which plug-in can be similar to the product page of this website? https://www.sasaspa.com/collectiontmr His website does not need to reload the page when using the filter on the left, saving a […]

Categories
CMS Mastering Development Wordpress

CSS gap issue in div element

The items are not listed in order there is a gap between item listed how to fix this. Screenshot: https://prnt.sc/sphfig <div class=”col-xs-6 col-sm-6 col-md-6 col-lg-6″> <div class=”tg-topcity”> <figure class=”tg-cityimg”> <img src=”<?php echo esc_url( $cat_image ); ?>” alt=”<?php esc_html_e(‘City Image’, ‘listingo’); ?>”> <figcaption> <h3><a href=”<?php echo esc_url( get_term_link( $value->term_id, ‘cities’ ) ); echo esc_attr( $custom_url ); […]

Categories
CMS Mastering Development Wordpress

How to fix wrong attribute error for Visual Composer Grid Builder?

Hello I am facing this issue in editing media grid layout of Visual Composer V6.2.2. Below is the error I am getting Fatal error: Uncaught Exception: Wrong attribute for ‘vc_single_image’ shortcode. Attribute ‘param_name’ required in /var/www/wp-content/plugins/js_composer/include/classes/core/class-wpb-map.php:667 Stack Trace 1. WPBMap::mutateParam(‘vc_single_image’, Array) /var/www/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php:204 2. Vc_Mapper->callElementActivities(‘vc_single_image’) /var/www/wp-content/plugins/js_composer/include/classes/core/class-wpb-map.php:926 3. WPBMap::setElementSettings(‘vc_single_image’) /var/www/wp-content/plugins/js_composer/include/classes/core/class-wpb-map.php:345 4. WPBMap::generateData() /var/www/wp-content/plugins/js_composer/include/classes/core/class-wpb-map.php:370 5. WPBMap::getAllShortCodes() /var/www/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-vc-shortcodes-manager.php:173 6. […]

Categories
CMS Mastering Development Wordpress

exclude particular category in api

How do I exclude a particular category in the API? For all categories – I may use the following: https://www.example.com/?rest_route=/wp/v2/posts&per_page=100 What if I need across all the categories except for category-10? I am using JavaScript at the front. Thanks

Categories
CMS Mastering Development Wordpress

Pagination not work on page but work on category

i am using kriesi Pagination, it is working perfectly fine category page but it when i do similar query on page then it is not working. any idea why ? function kriesi_pagination($pages = ”, $range = 2){ $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == ”) { global $wp_query; $pages […]

Categories
CMS Mastering Development Wordpress

Change user metadata on registration (show_admin_bar_front = false)

This is my first contact with WP Development, and I’m trying to not display the WP admin bar after the registration. Since it’s metadata called ‘show_admin_bar-front’, I’m updating that right after creating the user. if(count($error) == 0) { wp_create_user( $username, $password, $email); $user_id = get_current_user_id(); update_user_meta($user_id, ‘show_admin_bar_front’, ‘false’); echo “User Created Successfully!”; exit(); } As […]