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
Author Archives: Amanur Rahman
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’ );
Removing Add Media option from WordPress Editor
Removing Add Media option from WordPress Editor In Many ways many users doesn’t need the “Add Media” option to add image in the wordpress content editor. Those who wants to remove it can do like below to get rid of this. Add the below code to theme function function z_remove_media_controls() { remove_action( ‘media_buttons’, ‘media_buttons’ );} …
Continue reading “Removing Add Media option from WordPress Editor”
Remove Unwanted Admin Menu Items
Remove Unwanted Admin Menu Items from wordpress dashboard. In the wordpress dashboard there are many items in the dashboard menu that is not needed almost all of the time. For those who wants to remove unwanted menu items from wordpress dashboard can do like below to get rid of unwanted menu items. Here is the …
Short description with limit in Woocommerce product page
Short description with limit in Woocommerce product page To do so go to your woocommerce plugin directory like below wp-content/plugins/woocommerce/templates And find the php file named content-product.php . After that just add the flowing code below Here you can change the limit of character you want to display in short description. In the above code …
Continue reading “Short description with limit in Woocommerce product page”
Importing Large Database to Wamp Server
Importing Large Database to Wamp Server It is obvious that most of us do website development in local server in terms of CMS like WordPress. I do that also. Few days ago i was working with a client site that has a big database. Which I need to copy into my local server and redesign …
Where is my php.ini?
A new and easy trick to find your php.ini would be to ask php itself what it’s using, eg: /usr/local/bin/php -i | grep ‘Loaded Configuration File’ which does assume that the php output will be in English. If you’re running the default version of CLI php, your php.ini will be located at: /usr/local/lib/php.ini If you’re …
Fatal error maximum execution time in wamp server
Fatal error maximum execution time in wamp server When you will try to import a database which is little bigger like 5 or 10 MB in to wamp server in windows then you will get this error. This error occurs when you importing mysql file into local mysql database. edit the config.inc.php in phpmyadmin folder …
Continue reading “Fatal error maximum execution time in wamp server”
Importing large file using wamp server phpmyadmin
Importing large file using wamp server phpmyadmin When trying to import large SQL files into mysql using phpmyadmin, at wamp server it gets error that says “You probably trying to upload large files”. To get rid of this error I have got a nice solution which is so simple Find the config.inc.php file located in …
Continue reading “Importing large file using wamp server phpmyadmin”