Blog Archives

Fix WordPress Navigation -Same Posts On All Pages Problem

Add this to the custom query: ‘paged’ => get_query_var(‘paged’, 1) Refer: Query Anything On WordPress Anywhere

Posted in WordPress Tagged with: , ,

Modify WordPress Main Query – The Right Way

/** * Modify WordPress Main Query – The Right Way * * @refer  https://millionclues.com/wordpress-tips/modify-wordpress-main-query/ */ function modify_wp_main_query_done_right( $query ) {   if ( $query->is_main_query() ) {     $query->query_vars[‘meta_key’] = ‘statusverified_13141’;     $query->query_vars[‘meta_value’] = 1;   } } add_action( ‘pre_get_posts’, ‘modify_wp_main_query_done_right’ ); Refer WP Query to

Posted in WordPress Tagged with: , ,

Tracking Outbound Links With Global Site Tag (gtag.js) – Google Analytics

Add this script to your footer.php before the closing </body> <script> // Function that tracks a click on an outbound link in Analytics. // @refer https://support.google.com/analytics/answer/7478520?hl=en var trackOutboundLink = function(url) {   gtag(‘event’, ‘click’, {     ‘event_category’: ‘outbound’,     ‘event_label’: url,     ‘transport_type’: ‘beacon’

Posted in Internet Tagged with:

Adding Safari Only CSS

_::-webkit-full-page-media, _:future, :root .your-custom-class {   top: 40%; } Details here.

Posted in WordPress Tagged with: ,

Launch Bootstrap 4 Modal From WordPress Menu

Add .launch-contact-modal class to your WordPress menu item. This can be done from the admin interface Appearance > Menu. Change #contactModal in the following jQuery to the ID of your Bootstrap 4 modal. jQuery(document).ready(function($){   // Adding Bootstrap Modal to WordPress

Posted in WordPress Tagged with: , ,
Email Stamp

Free Newsletter

Get my newest blog posts and insider tips. No more than a few emails a year.

Just enter your email address below and click Sign Up Now

Please enter all required fields
Correct invalid entries

You have Successfully Subscribed!