
WooCommerce: Hide Price & Add to Cart for Logged Out Users
If you require only logged in users to be able to see prices in woocomerce, here is how you can do it. Add the following to the bottom of your themes functions.php file.
I’m a Full Stack Web Developer who shares programming tips with the community.
If you require only logged in users to be able to see prices in woocomerce, here is how you can do it. Add the following to the bottom of your themes functions.php file.
Here’s how you can easily add some plus/minus buttons around the quantity add to cart input. First, the code to add the buttons to the page. Next the jQuery to control changing the quantity when the buttons are clicked. Finally, depending on your theme you may need to…
Here is how to make a link open a Google Map with a specific address. Start with an href of http://maps.google.com/?q= and add the address. So you end with something like this… <a href=”http://maps.google.com/?q=1200 Pennsylvania Ave SE, Washington, District of Columbia, 20003″>…</a> This will open a Google map…
By default an Advanced Custom Fields Image object will return the full sized image. But what if you want a specific image size. Here is how you can get a specific image size url from an ACF image field. If your acf image field is returning an image…
In this post I share with you how to show/hide an area with jQuery. jQuery makes this super simple with the .toggle() method. This will simply toggle the visibility of the area back and forth to easily show then hide it. Also if you use the function .slideToggle(),…
In this post, I will share how to create a card hover flip animation with only CSS. For an example of this effect, hover the card below. See the Pen Card Flipping Effect by Steven Stromick (@sstromick) on CodePen. Let’s start with the HTML for the card, card…
I’m a Full Stack Web Developer who shares programming tips with the community.