Category: WordPress

  • WooCommerce : Change “Add to Cart” Text if Product Already in Cart.

    WooCommerce : Change “Add to Cart” Text if Product Already in Cart.

    If one a product is already in cart, displaying a different text instead of “Add to Cart” text for “add_to_cart” button is a nice idea. When a product is in cart , woocomerce still show ‘Add to Cart’ text. There is no information on shop page or product page that ‘s this product is already…

  • WooCommerce : Add New Tab In My Account Page.

    WooCommerce : Add New Tab In My Account Page.

    We Are Web developer and Adding a Tab in WooCommerce My Account page with custom content is one of the most common customization requests which we receive From The clients. This Postis regarding how to add custom tab on WooCommerce My Account page. How Will We Do That? Adding a Tab in WooCommerce my account…

  • WooCommerce : Disable Automatic Login After Registration.

    WooCommerce : Disable Automatic Login After Registration.

    When we enable customer registration on My Account page, We will know that when new user is register it’s automatically logged in . it need to change when we need to manually approve each user. In that case we have to stop this Programmatically. we can simply use ‘woocommerce_registration_auth_new_customer’ filter for that. add_filter( ‘woocommerce_registration_auth_new_customer’, ‘__return_false’…

  • WooCommerce : Upload File in My Account Registration Form.

    WooCommerce : Upload File in My Account Registration Form.

    How to upload profile picture or any file during WooCommerce My Account Registration? For uploading file from WooCommerce My Account Registration form we need to set form enctype type To multipart/form-data.secondly , we need to add html tags for input type file to upload file. then we need to validate them if the field field…

  • WooCommerce : Display a Product Category Dropdown and Redirect To Single Category Upon Selection.

    WooCommerce : Display a Product Category Dropdown and Redirect To Single Category Upon Selection.

    How To add category dropdown Before WooCommerce product loop? WooCommerce product loop is generally on shop page and category page. on both pages WooCommerce provide hooks before the loop and after the loop. “woocommerce_before_shop_loop” “woocommerce_after_shop_loop” For adding a category dropdpwn or other texonomy dropdown We will use “woocommerce_before_shop_loop”. For Both Product loop. (shop page and…

  • Change Sender Name And Email in Outgoing WordPress Email.

    Change Sender Name And Email in Outgoing WordPress Email.

    How to change default sender name and email in outgoing WordPress email? This can be done by many plugins but the real reason behind doing this using custom code is that Using too many plugins can harm your website or blog speed and performance which is not desirable by any site owner. that’s why we…

  • WordPress : Remove Welcome Panel from WordPress Dashboard.

    WordPress : Remove Welcome Panel from WordPress Dashboard.

    How to remove Welcome Panel from WordPress Dashboard? Welcome panel is a Useful meta box added to the WordPress dashboard screen of WordPress admin area. It provides useful shortcuts for new users to do important things on their new WordPress site.You Can remove this easily by removing ‘welcome_panel’ action which is added for it. Why…

  • WordPress : Add Admin User in WordPress By FTP client.

    WordPress : Add Admin User in WordPress By  FTP client.

    Did You Forget WordPress Admin credentials? How will you login now if forget Admin credentials? This happens many times when we forget the login password of WordPress. If you have FTP details then no need to worry about it. You can create new admin user using FTP. Just paste this code to your theme’s functions.php.…

  • Adding Sidebar in WordPress Themes.

    Adding Sidebar in WordPress Themes.

    How to Add a Custom Sidebar to a WordPress Theme? What’s a sidebar in WordPress ? WordPress Sidebars allow you display all type of widgets inside your theme. And you can use “sidebars” to display widgets anywhere you want.All themes by default come with at least one sidebar in it. Sidebar is one of the…