Similar Posts
Dequeue or remove Gravity Forms style or CSS
Dequeue or remove Gravity Forms style or css in your WordPress site. Common styles of Gravity Forms is `formreset.css`, `datepicker.css`, `formsmain.css`, `readyclass.css`, and `browsers.css`. Gravity Forms has action called `gform_enqueue_scripts`, you can visit the link for more information. I want to deregister this style gforms_datepicker_css in functions.php. To do that, using the codes below your…
VIDEOJS: ERROR: videojs-contrib-ads has not seen a loadstart event 5 seconds after being initialized, but a source is present.
VIDEOJS: ERROR: videojs-contrib-ads has not seen a loadstart event 5 seconds after being initialized, but a source is present. This indicates that videojs-contrib-ads was initialized too late. It must be initialized immediately after video.js in the same tick. As a result, some ads will not play and some media events will be incorrect. For more…
get_the_ID() conflict in nested WP_Query codes
Hi guys, I have this problem during my WordPress coding journey. The `get_the_ID()` has conflict in nested `WP_Query` codes. On the first `WP_Query` loop, the ID for example is 20, then inside that loop I have another `WP_Query` (see the codes below) that makes the `WP_Query` codex more completed if you don’t code it right….
Override rtMedia media-gallery.php template into current WordPress theme
Override rtMedia media-gallery.php template into current WordPress theme is now not a problem. For example you have artist role in your users and you want different template for the artist role. This apply in `http://www.sample.com/members/artist/media/music/` page. Then create a folder inside the `/public_html/wp-content/themes/current-theme/rtmedia/media`. Create your `media-gallery-artist.php` file or simple clone the `media-gallery.php` and renamed it…
Add sub-page using 1 page without adding another pages using add_rewrite_rule
Add sub-page using 1 page without adding another pages using add_rewrite_rule is very simple but clean strategy most specially if you have multiple sub-pages. Using add_rewrite_rule, your task is done. Please copy the codes to your functions.php. Example: I have this page, https://www.anthonypagaycarbon.com/parent/ and the page ID is 10. add_filter(‘query_vars’, ‘wdes_query_vars’); function wdes_query_vars($vars) { $vars[]…
Buddypress codex
How to add an `Add Friend` button in a custom templates? Copy the codes below. How to get the total friends count? Read more here https://buddypress.wp-a2z.org/oik_api/friends_get_total_friend_count/. How to get the total friend requests count? Read more articles below. bp_friend_total_requests_count – https://buddypress.wp-a2z.org/oik_api/bp_friend_total_requests_count/ bp_friend_get_total_requests_count – https://buddypress.wp-a2z.org/oik_api/bp_friend_get_total_requests_count/ How to remove `Add Friend` button in Buddypress pages. Active menu…
