Author: Tentenbiz

WP Terms Popup WordPress Plugin

WP Terms Popup WordPress Plugin

WP Terms Popup is already listed on WordPress.org plugins repository. Full URL of the plugin here.   What the plugin does The plugin presents your visitors with a professional looking ‘terms and conditions’ that will make them agree to it before they can continue browsing your website. This is the easiest way to get your visitors to agree to your terms, privacy policy, etc. before entering your website. Visitors will only see the terms once. If they agree to your terms, they will never see it again for the duration of time specified in your setting. If they don’t agree to your terms, they have a choice to go to a URL of your choice. If visitors decide to access your website with a different URL, they will still see the terms until they agree to it. You have the choice whether to enable or disable this to logged in users. Assure you that no visitors could use your website before agreeing...
Read More
Get Woocommerce Current Product Category In Single Product Page

Get Woocommerce Current Product Category In Single Product Page

First of all, Woocommerce products are stored on WordPress as custom post type (CPT) named 'product'. The product categories are custom taxonomy named 'product_cat'. Let's say you want to show a simple line of text that tells your visitors the shipping flat rate of a product, and you have different rates for different product categories. For an example, you have two different product categories in your shop, which you named them as tshirts and hoodies. Tshirts have shipping flat rate of $10.00 while hoodies have flat rate of $15.00. This is how you check for current product category (either tshirts or hoodies) on a single product page. This is used inside the loop. That's it!...
Read More
How To Override Buddypress Template Files

How To Override Buddypress Template Files

With Woocommerce, you override Woocommerce's default template files by creating a directory called 'woocommerce' inside your WordPress theme folder and placing all the template files inside that folder (preserving directories structure). So is there a way where you can do a similar thing with Buddypress in order to customize how Buddypress looks on the front end? Luckily, there is. The process is very similar. This is what you do: 1. The first thing to do is to have a folder named 'buddypress' in your WordPress theme root directory. With Buddypress though, you can also use the name 'community' for the directory instead of 'buddypress'. Use whichever you prefer, but make sure there is only one exists at a time. So your directory will look something like this: /wp-content/themes/awesome-theme/buddypress/ OR /wp-content/themes/awesome-theme/community/ 2. Now, all the Buddypress template files are located inside the following folder in the Buddypress plugin: /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/ Everything from here on is just like how you override Woocommerce template files. You copy the files inside the directory above...
Read More