Adding Extra CSS Class to header.php when scrolling Since Many days I was trying to make a sticky header for websites and I know what to do for that but didn’t know how to do that. I was trying to set a transparent header when the website is not scrolling but wanted to add header […]
Author Archives: amanhstu
Adding Extra CSS for RTL Language
Adding Extra CSS for RTL Language To do so just add the below code to theme header.php then your theme will support multilanguage
Woocommerce thank you page after checkout
Woocommerce thank you page after checkout I think it is time to add the below code snippet to woocommerce to enable custom thank you page.
Related Post Plugin
Related Post Plugin I have just created to show related post under each single post.
How can I apply the rules below to IE only?
Apply CSS Rules to IE only There are 2 ways to do so. One like below <!–[if IE]> <style type=”text/css”> IE specific CSS rules go here </style> <![endif]–> And second one like to avoid loading multiple CSS files or to have inline CSS is to hand a class to the body tag depending on the […]
How to root your symphone w71i OR any Smartphone
I was searching to root my newly bought symphony w71i set. But couldn’t get a right solution for a long time. But finally I got it. It is so easy to do. Just download this sofware from this site Here named Kingo root. After downloading that just install it to your computer and open it. […]
Short Description in Shop Page For Woocommerce
Shop Page Short Description Just Add those below code to your theme function.php and you will have a Product title Description in your Product Post Field at right Side
How to fix ftp “cleartext sessions are not accepted on this serve” error
Cleartext sessions are not accepted on this serve “421 Sorry, cleartext sessions are not accepted on this server” means that the server is using “FTP Over Explicit TLS/SSL”. This is a Good Thing. You might be able to fix it by giving the protocol “ftpes:” instead of “ftp:”: ftpes://ftp.somesite.com/some_folder … or … ftps://ftp.somesite.com/some_folder
Disable WordPress Admin Bar
Disable WordPress Admin Bar Disable Admin Bar for everyone // Disable Admin Bar for everyone if (!function_exists(‘df_disable_admin_bar’)) { function df_disable_admin_bar() { // for the admin page remove_action(‘admin_footer’, ‘wp_admin_bar_render’, 1000); // for the front-end remove_action(‘wp_footer’, ‘wp_admin_bar_render’, 1000); // css override for the admin page function remove_admin_bar_style_backend() { echo ‘<style>body.admin-bar #wpcontent, body.admin-bar #adminmenu { padding-top: 0px !important; […]
Removing Quick Edit option from wordpress rows
Removing Quick Edit option from wordpress rows Add this to the theme function File. function remove_stuff ( $actions ) { if( !is_super_admin() && !current_user_can( ‘edit_theme_options’ ) ) { unset($actions[‘inline hide-if-no-js’]); return $actions; } else { return $actions; } } add_filter ( ‘page_row_actions’ , ‘remove_stuff’ ); add_filter ( ‘post_row_actions’ , ‘remove_stuff’ );