written by :
Grg Ugene
Hello Folks, ever need to change the Elementor header via custom code. Or need extra conditions, that elementor-pro do not provide? Assuming, you are using Elementor and Elementor-Pro First, we hook into ‘elementor/theme/before_do_{$locations}’ $location is our ‘header’ Then in our callback function, we first remove the default location header. This location seems like an array…
written by :
Grg Ugene
Hi Folks, it is me again. Sometimes we want to show all reviews (perhaps only 5 ⭐⭐⭐⭐⭐) in a separate page for our end users. Obviously to make our customers we have many great 5 star reviews. I could not find a perfect solution for this. So, I made a quick shortcode function to acheive…
written by :
Grg Ugene
Not everyday scenario, but sometimes you would like to have a custom message when the coupon is applied to your woocommerce shop. Straight to the code. Here, we are applying a filter hook, to change the woocommerce default “Coupon applied successfully” message. We are hooking up a custom function that checks if the $msg_code is…
written by :
Grg Ugene
Most of us here in WordPress community have known and used the Contact Form 7(CF7) throughout our entirety. I personally have used it in every single website I have built. Unless client wants otherwise. It is my go to plugin. It is simple, tried and tested and well maintained since dawn of the dinosaurs (you…
written by :
Grg Ugene
This is the new and updated version of my article here: LearnPress Lesson Template Changes I got to admit, it is quite simpler in terms of files than before.Turns out it is now possible to edit with only CSS and make our Header and Footer show in current implementation of LearnPress plugin. WordPress Version :…
written by :
Grg Ugene
In order to do a custom listing of active subscriptions in Yith WooCommerce Subscription plugin, here is the code you can write:Assuming your WordPress database table prefix is the default: “wp_” Hell, if you want to move one step further and list only active members, then you can throw “AND” condition in the query itself,…