• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WordPress Tips, Code Snippets, and How To Tutorials

  • Home
  • Blog
  • Tips
  • Snippets
  • Tutorials
  • Contact

Links

How to remove the breadcrumbs from WooCommerce products on WordPress

November 7, 2019 by admin Leave a Comment

If you are using WooCommerce on your WordPress website you may want to remove the breadcrumbs from the products on there. If you want to do that without a plugin you can then add this code to your functions.php file. You may want to backup your WordPress website before you make updates to the file on there.

Remove WooCommerce breadcrumbs

/**
 * Remove product breadcrumbs
 *
 * @author WPSnacks.com
 * @link https://www.wpsnacks.com
 */
function remove_woo_breadcrumbs() {
    remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
}
add_action( 'init', 'remove_woo_breadcrumbs' );

Now if that works for you it would remove the breadcrumbs from the WooCommerce products on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: Code Snippets Tagged With: Functions.php, Links, Templates, WooCommerce, WordPress Admin, WordPress Theme

How to make a direct add to cart product link for WooCommerce on WordPress

November 7, 2019 by admin Leave a Comment

If you are using WooCommerce on your WordPress website you may want to make a direct link that lets people add a product to their cart. This is one way to do that without using a plugin.

https://yourdomain.com/checkout/?add-to-cart=345

You replace the https and yourdomain.com with your http or https and the website domain and the 345 with the product id. You can read this post to find out how to find the product id of a WooCommerce product on your WordPress website on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Links, WooCommerce

How to find the product id of an item in your WooCommerce store on WordPress

November 7, 2019 by admin Leave a Comment

If you use WooCommerce on your WordPress website for an online store you may need to find the product id of an item in the store to use on the website. You may want to use the product id to make a direct add to cart link for your WooCommerce product on your website on there. You can do this without a plugin on there.

  1. From the WordPress admin left menu you can click on the products link
  2. From the list of products you can hover the mouse over the product you want to know the id of
  3. In the lower right you will likely see a link listed like yourdomain.com/wp-admin/post.php?post=345&action=edit
  4. The 345 is where you can find the product id

If that worked for you then you now have the product id of the WooCommerce product on your WordPress website on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Links, WooCommerce, WordPress Admin

How to add or remove links on your WordPress menu

November 5, 2019 by admin Leave a Comment

Your WordPress website has a way to update the menu without using a plugin. You can add or remove links on your WordPress menu using the WordPress admin on there.

To update the WordPress menu on your website on there

  1. From the WordPress admin left menu you can click on appearance > menus
  2. From the WordPress menu page the top of the page has the name of the menu you are updating on there
  3. The left side of the page has different pages or posts that you can put into your menu
  4. The right side of the page has the menu
  5. To add a page or post to your menu you click on the page or post you want to add then click the add to menu button on there
  6. Then you click on the save menu button to save the menu

Then if that worked you would update and save the menu for your WordPress website on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Links, Menus, WordPress Admin

How to edit the permalink settings for the url of your WordPress blog posts

November 3, 2019 by admin Leave a Comment

On your WordPress website you may want to do different things with the url of your WordPress blog posts like put the post name or the month and name or the day and name in the url on the website on there. In WordPress there are different settings you can use for the permalinks for your blog posts which is the url of your blog posts website on there. You can read more information about WordPress permalinks on the WordPress.org website on there. You may want to be very careful when you update the permalinks of the website as it may turn into problems for your previously linked to posts on the internet due to the url maybe being different now on there.

To view and edit the permalinks of the WordPress blog posts of your website on there

  1. From the WordPress admin left menu you can click on settings > permalinks
  2. From the permalink settings page there are settings near the top of the page
  3. You can then click on the setting that you want for your url on there
  4. You can then click on the save button on that page on there

If that works for you it would set the url for blog posts what you want in the url on the WordPress website on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Links, WordPress Admin

How to add the post name to the url of your WordPress blog posts with permalinks

November 3, 2019 by admin Leave a Comment

When you have a website that uses WordPress you may want to do different things with the url of your WordPress blog posts like put the post name in the url on there. In WordPress you have different settings you can use for the permalinks for your blog posts which is the url of your blog posts website on there. You can read more information about WordPress permalinks on the WordPress.org website on there. You may want to be very careful when you update the permalinks of the website as it may turn into problems for your previously linked to posts on the internet due to the url maybe being different now on the website on there.

To update the permalinks of the blog posts of your website to put the post name in the url of your WordPress blog posts on there

  1. From the WordPress admin left menu you can click on settings > permalinks
  2. From the permalink settings page there are settings near the top of the page
  3. You can then click on the post name setting on there
  4. You can then click on the save button on that page on there

If that works for you it would set the url for blog posts to have the post name in the url on the website on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Links, WordPress Admin

How to add the month and name to your WordPress blog posts on your website

November 3, 2019 by admin Leave a Comment

If you are using WordPress for your website there are different settings you can use for the permalinks which is the url of your blog posts on the website on there. You can read more information about WordPress permalinks on the WordPress.org website on there. You may want to be very careful when you update the permalinks of the website as it may turn into problems for your previously linked to posts on the internet due to the url maybe being different now on there.

If you want to update the permalinks of your website to put the month and name in the url of your WordPress blog posts on there

  1. From the WordPress admin left menu you can click on settings > permalinks
  2. From the permalink settings page there are settings near the top of the page
  3. You can then click on the month and name setting on there
  4. You can then click on the save button on that page on there

If that works for you it would set the url for blog posts to have the month and name in the url on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Links, WordPress Admin

How to add the day and name to the url in WordPress blog posts

November 3, 2019 by admin Leave a Comment

On your WordPress website you have different things you can do with the url of your WordPress blog posts. WordPress has a built in permalinks settings page that lets you do settings for that. You can read more information about WordPress permalinks on the WordPress.org website on there. You may want to be very careful when you update the permalinks of the website as it may turn into problems for your previously linked to posts on the internet due to the url maybe being different now.

To update the permalinks of your website to put the day and name in the url of your WordPress blog posts on there

  1. From the WordPress admin left menu you can click on settings > permalinks
  2. From the permalink settings page there are settings near the top of the page
  3. You can then click on the day and name setting
  4. You can then click on the save button on that page on there

If that works for you it would set the url for blog posts to have the day and name in the url.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: WordPress Tips Tagged With: Links, WordPress Admin

How to remove the URL link from user comments on WordPress

October 31, 2019 by admin Leave a Comment

On your WordPress website when a user makes a comment if they put in a url it often makes that a link in the comments. If you want to make that link not clickable you can then add this code to your functions.php file. You may want to backup your WordPress website before you make updates to that on there.

/**
 * Remove link from user comments
 *
 * @author WPSnacks.com
 * @link https://www.wpsnacks.com
 */
remove_filter('comment_text', 'make_clickable', 9);

Then if that works for you it would remove the links from user comments on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: Code Snippets Tagged With: Comments, Functions.php, Links

Remove the title from links in your WordPress navigation menu without a plugin

October 30, 2019 by admin Leave a Comment

On your WordPress website you may have a navigation menu at the top of the website that displays a title for the link in the menu if you hover the mouse over the links in the menu on there. You may want to remove those titles from the links in your menu on there. You can do this without a plugin if you add this code to your functions.php file. You may want to backup your WordPress website before you make updates to the functions.php file.

/**
 * Remove menu title
 *
 * @author WPSnacks.com
 * @link https://www.wpsnacks.com
 */
function no_menu_title( $menu ){
return $menu = preg_replace('/ title=\"(.*?)\"/', '', $menu );
}
add_filter( 'wp_nav_menu', 'no_menu_title' );
add_filter( 'wp_page_menu', 'no_menu_title' );
add_filter( 'wp_list_categories', 'no_menu_title' );

Now if that works for you it would remove the titles from the link in your WordPress navigation menu on there.

If you like this then you should look up more of our WordPress Tips Code Snippets and Tutorials.

Disclosure: There are affiliate links on posts and throughout the website and if you use the links to make a purchase we may earn a commission from it. We link to these companies and their products because of the quality of the companies and not because of the commission we may receive from it.

Disclaimer: The information contained in this website is for general information purposes only and in no event will this website or its owners be liable for any losses or damages associated with your use of our website or content. We recommend that you make a backup of your website before you make updates to it. Click here to see our full Disclaimer.

Filed Under: Code Snippets Tagged With: Functions.php, Links, Menus

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to Next Page »

Primary Sidebar

Hey, We Deliver... Anywhere!

Enter Email Address below to receive our snacks via email:

Join Over 1200 Readers!

Jump To A Random WordPress Tip

Copyright © 2019 • wpsnacks.com