Similar Posts
How to check if there is an ajax running on your page?
How to check if there is an ajax running on your page? Here’s a code below that can help you figure it out. jQuery( document ).ready(function($) { $(document).ajaxStart( function() { console.log('ajax true' ); }).ajaxStop( function() { console.log('ajax false' ); }); });
Warning: Cannot modify header information – headers already sent
How to fix “Warning: Cannot modify header information – headers already sent” error? Do have something like this error on your WordPress site? Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/themes/template/file.php:1) in /public_html/post.php on line 197 To fix this, I simply go to this folder directory “/public_html/wp-content/themes/template/” and find…
Separated number in comma and decimal point using PHP or JS number format.
Separated number in comma and decimal point using PHP or JS number format. Commonly used in the price format and number separator. Hopefully this can help you. PHP: Found this post https://www.w3schools.com/php/func_string_number_format.asp and the codes below is the sample usage of the PHP code. echo number_format("1000000"); // output will be 1,000,000 echo number_format("1000000",2); // output…
How to style your radio button?
How to style your radio button? Using simple CSS, you can do whatever styles in your radio button (<input type=”radio” value=”my radio button” />). Try this code your own. Output: my radio button my radio button input[type=radio] { -webkit-appearance: textfield; background: green; border: 5px solid #000; padding: 7px; border-radius: 50%; } input[type=radio]:checked { background: red;…
How to update BuddyPress cover image size?
How to update BuddyPress cover image size? Just copy and paste the codes below to your functions.php add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'swifter_xprofile_cover_image', 10, 1 ); function bp_legacy_theme_cover_image_css_2( $settings = array() ) { $theme_handle = 'bp-child-css'; $settings['theme_handle'] = $theme_handle; $settings['callback'] = 'bp_legacy_theme_cover_image_2'; return $settings; } function bp_legacy_theme_cover_image_2( $params = array() ) { if ( empty( $params ) )…


Many thanks if you are so kind to fairly share this information.