Home » Articles posted by binny daniel

Author Archives: binny daniel

How to identify if your in the first page of WordPress pagination?

Here is the simple function you can use to check the first page of pagination: if ( !is_paged() ) { // first page of pagination }


Clean the header section inserted by WordPress Core

Are you looking for a solution to remove the extra code inserted by the WordPress core function wp_head()? Then check the following codes and paste it in your themes functions.php file to make it work 🙂 1. Remove XML-RPC RSD link remove_action (‘wp_head’, ‘rsd_link’);   2. Remove WordPress version number function remove_header_version() { return ”; […]


Remove Version From CSS And JS

To Remove Version parameter from your theme css or js file add the following code in functions.php function eleminate_js_css_var( $src ) { if( strpos( $src, ‘?ver=’ ) ) $src = remove_query_arg( ‘ver’, $src ); return $src; } add_filter( ‘style_loader_src’, ‘eleminate_js_css_var’, 1000 ); add_filter( ‘script_loader_src’, ‘eleminate_js_css_var’, 1000 ); Alternatively… You can set NULL to the fourth […]


Unable to Insert a line break before an element using CSS?

Its easy to have a line break before or after any element using css. Simply add this property to the ::before or ::after class of any element: .ClassName::after { content: “\a”; white-space: pre-wrap; } .ClassName::before { content: “\a”; white-space: pre-wrap; }


Is PUBG is not playing from Tencent Gaming Buddy??

If your Tencent Gaming doesn’t showing PUBG game and its not even starting it.. then follow these simple steps to load PUBG like before: 1.. Go to C Drive > Program Files > txgameassistant (search fo the similar folder name) 2.. Go to inside txgameassistant > Find UI folder 3.. Search for an application called […]


Getting “Blocked loading mixed active content” Error on a Web Page?

The Firefox Web Console displays a mixed content warning message sometimes. This error/warning comes because the third party API or Script was loaded via HTTP. To fix this type of error you just need to replace all the request of HTTP content with HTTPS. There are a few examples of mixed content includes JavaScript files, […]


Remove Custom Post Type from a Theme

Add this block of code to your theme’s functions.php Note: Change projects, employees or clients according to your theme custom post type. /* Remove Custom Post Type */ add_action(‘init’, ‘theme_remove_post_type’, 1); function theme_remove_post_type( $post_type ) { global $wp_post_types; if ( isset( $wp_post_types[‘projects’] ) || isset( $wp_post_types[’employees’] ) || isset( $wp_post_types[‘clients’] ) ) { unset( $wp_post_types[‘projects’] […]


Custom 404 Text for Thesis Theme

Open Thesis > Custom File Editor and select custom-functions.php and add the following code: /* Custom 404 Title*/ function custom_404_title() { ?> <strong>Article Not Found</strong> <?php } remove_action(‘thesis_hook_404_title’, ‘thesis_404_title’); add_action(‘thesis_hook_404_title’, ‘custom_404_title’); /* Custom 404 Content*/ function custom_404_content() { ?> <p><strong>Article Not Found!</strong><br />The article you were looking for was not found, try again later!</p> <?php […]


Understand the use of Border in CSS

1.. All Side Thick Borders A div element with a border .allborder{ border-top: 20px solid red; border-bottom: 20px solid #fc0; border-left: 20px solid blue; border-right: 20px solid green; } 2.. Square Border .bordernospace{ font-size: 0px; line-height: 0%; width: 0px; border-top: 20px solid red; border-bottom: 20px solid #fc0; border-left: 20px solid blue; border-right: 20px solid green; […]