DigitalOcean : The uploaded file exceeds the upload_max_filesize directive in php.ini.

February 6, 2019 |

While Uploading Themes or Plugins in DigitalOcean Droplet, You might get this kind of notice/ issue. To solve this you need change the value of “upload_max_filesize” directive in your php.ini file. So where is php.ini file?? I follow your link and I fix it! Thanks because It work for me. Here is my way: using terminal (cmd) and connect to your server via ssh code type cd \ to go root folder type sudo nano /etc/php5/apache2/php.ini add after php.ini file upload_max_filesize = 32M post_max_size = 32M => save your php.ini file type : sudo service apache2 restart After the instruction – go to your WP-admin and Bingo 🙂      

DigitalOcean : Apache WrodPress Could not remove the old Plugin / Themes Issues

January 26, 2019 |

I tried to update the themes and plugins in latest WorddPress 5.0 Gutenberg in DigitalOcean  with Linux 18.XX with Apache . Before I install new plugin and Themes I tried to delete them. But WordPress was unable to processed. I researched and found that its ownership issue. The solve / fix this issue you need to perform following command in your command shell ( putty for Windows 10 in my case ).   chown -Rf www-data.www-data /var/www/html/ chown -Rf www-data.www-data /var/www/ If that doesn’t work, alternatively you can try this command: chown -R apache:apache /var/www/ Replace “/var/www/” with the path to where you actually have installed WordPress.

Redirecting Old Website to New Website using .htaccess

September 15, 2018 |

When you migrate your website from old domain to new one, you want to preserve the link traffic to new web address. In Apache web server we use Apache Rewrite Rules to add the redirection features. The file with this type of rules added into file name .htaccess The apache codes to add this features are as follows: RewriteEngine On RewriteCond %{HTTP_HOST} ^$ [OR] RewriteCond %{HTTP_HOST} ^$ RewriteRule (.*)$$1 [R=301,L] If you just want to redirect the single page address, the code will be as follows: Redirect 301 /old-post-page.html

Easily Add styles to Gutenberg Block Editor !!!

September 4, 2018 |

A WordPress theme can add stylesheet to change the Gutenberg editor’s appearance. Generally changes done in the visual aspects of the editor like colors, font family and background etc. So that it will look exactly similar to the front of the website. Firstly you need to create a new stylesheet file in your current WordPress theme location. Let us consider the filename to be style-editor.css. Next, load your newly created Gutenberg editor sytlesheet in your WordPress theme by adding following three lines of code.   /** * Enqueue Gutenberg block editor style */ function lightpress_gutenberg_editor_styles() { wp_enqueue_style( ‘lightpress-block-editor-styles’, get_theme_file_uri( ‘/style-editor.css’ ), false, ‘1.0’, ‘all’ ); } add_action( ‘enqueue_block_editor_assets’, ‘lightpress_gutenberg_editor_styles’ ); Lastly change “lightpress” namespace with your own theme name. Thanks

How to Change the WWW Root Directory on Wampserver 3

September 4, 2018 |

Yes, we all want to save our files and documentation from system crash of C Drive. To avoid this issue we generally locate our “WWW” or “htdocs” directory in different location from the default installation directory i.e. C Drive. So it’s very easy to change the “WWW” directory in latest WampServer 3 that comes with PHP 5.6 , 7.x , MySQL as well as MariaDB.  Click on WampServer icon in right side bottom taskbar Select the Apache menu  -> httpd-vhosts.conf from the Pullup menu box. Search (CTRL + F)for the term “DocumentRoot” Change the DocumentRoot path DocumentRoot “${INSTALL_DIR}/www” <Directory “${INSTALL_DIR}/www/”> to your custom directory e.g. DocumentRoot “E:/www” <Directory “E:/www/”> Save your changes and “Restart All Services” When you browse to http://localhost, before the directory change the localhost window looks like this one. And after the change for directory the localhost window looks like this one.

Gutenberg Demo in Action

August 24, 2018 |

Gutenberg is WordPress new Editor plugin that will be integrated into the core WordPress in version 5.0. Project Gutenberg is the most revolutionary change in WordPress core in coming future. Try Gutenberg Demo Want to play with Gutenberg without installing it? Check out Frontenberg, a limited front-end demo of the WordPress Gutenberg editor. VIP Gutenberg Test

Best Free Syntax Highlighter WordPress Plugins

August 9, 2018 |

1. Enlighter – Customizable Syntax Highlighter Description Enlighter is a free, easy-to-use, syntax highlighting tool for WordPress. It’s build in PHP and uses the MooTools(Javascript) based EnlighterJS to provide a beautiful code-appearance. Using it can be as simple as selecting an editor style or adding shortcode around your scripts which you want to highlight and Enlighter takes care of the rest. An easy to use Theme-Customizer is included to modify the build-in themes without any css knowlegde! It also supports the automatic creation of tab-panes to display code-groups together (useful for multi-language examples – e.g. html+css+js) Theme Demo – Language Examples PLUGIN FEATURES Support for all common used languages including powerful generic highlighting Full Visual-Editor (TinyMCE) Integration (Admin Panel + Frontend) Theme Customizer including LIVE Preview Mode Inline Syntax Highlighting Tab-Indentation mode to align code with the tab key (single line and block selection) Markdown fenced code blocks bbPress shortcode + markdown code blocks support Shortcodes within content, comments and…    read more 

How to Enable WordPress Debug Mode

August 8, 2018 |

While developing WordPress theme we need to consider various factors. There are lot of plugins that help to test and debug WordPress theme. e.g. For standards theme, community use Theme Check Plugin to test the standard of theme development guidelines. If you haven’t enabled the WP_DEBUG value, it will display the warning notification like the below. Here, I am going to guide you on how to enable the WordPress debug mode. To enable WordPress Debug mode we need to edit the wp-config.php file. Open wp-config.php in your root WordPress Installation folder. On local computer : C://wamp64/www/wordpress/wp-config.php On Remote Server : public_html/wp-config.php Add the following code below this comment /* That’s all, stop editing! Happy blogging. */ define( ‘WP_DEBUG’, true ); Debugging PHP code can be part of any project, but WordPress comes with specific debug environment designed to simplify the process as well as standardize code across the core,…    read more 

Change PHP version 5.6 to 7.x in WampServer 3

June 18, 2018 |

 Click on WampServer icon in right side bottom taskbar Select the PHP menu  ->Version  from the Pullup menu box. Check the version via browsing http://localhost or via command line typing following command php -version Done ! Recommended Readings:

How to Reset or Create new admin user account in WordPress via FTP

February 5, 2017 |

Quickest and Easy way to create WordPress admin account WordPress very easy to use tool in Content Management System. To create new user easily via WordPress Dashboard you need go to the : WordPress admin login-> Dashboard->User -> Add New User Fill in the user information and submit.     Why you really need to Create Admin user account via FTP? Freelancer and web design agency works with many clients. They usually  get the Cpanel / Web Hosting login details but they forget to supply the Administrator user credentials. Sometime the time gap between client and design company almost differ by day and night. So if you ask for Admin account to client it will make your project 12-24 delay in projects. Also sometime your site might get hacked with password changed !!!!! You do not have access to WordPress admin area, at that time this method act as easy…    read more