Add a Back Link for Your Previous Page

There are 2 methods for going back to previous page using Anchor Tag <a>, below are 2 working methods and out of them 1st one is faster and have one great advantage in going back to previous page. 1. 2. Above method (2) only works ok if you have clicked on a link and opened link in a Current Tab in current browser window. … Read more

Can’t Run the Xampp – Apache Error

XAMPP Apache + MariaDB + PHP + Perl

I just want to test my new WordPress theme on my computer today, so I installed the XAMPP Apache + MariaDB + PHP + Perl package, but I can’t run the apache via there are some errors, I checked the error log and fixed most of the warnings, notice, etc, still can’t get the things … Read more

Add Content After Theia Post Slider

// slider function my_custom_function( $html) { $html .= ‘ ‘; $html .= get_post_field(‘post_content’, $post_id); $html .= ‘ ‘; return $html; } $priority = 10; add_filter( ‘tps_the_content_after’, ‘my_custom_function’, $priority, 2 ); wp_register_script(‘clickmag’, get_template_directory_uri() . ‘/js/slider-handlers.js’, array(‘jquery’), ”, true);

Allow WordPress Contributors to Upload Images, Not All Kind of Files

Go dashboard -> Appearance -> Theme Editor -> Theme Functions Add the following php code // Let Contributor Role to Upload Media if( current_user_can( ‘contributor’ ) && ! current_user_can( ‘upload_files’ ) ) add_action( ‘admin_init’, ‘allow_contributor_uploads’ ); function allow_contributor_uploads() { $contributor = get_role( ‘contributor’ ); $contributor->add_cap( ‘upload_files’ ); } // Upload Images Only add_filter(‘upload_mimes’, ‘custom_upload_mimes’); function … Read more

How to Update php5 to php7 in CentOS

I got a notify from my WordPress dashboard today, it said “WordPress has detected that your site is running on an insecure version of PHP.” I tried to update the php using their tutorial link, but got the following error: Well. I have to update the system using the ssh.  Login your root account using … Read more

How to Null WP Rocket Plugin

For this method, you need to have the original, not nulled  WP-Rocket plugin source. Don’t download the already nulled version of WP Rocket plugin, as someone may add some bad script in the code. Here are the steps to null the wp rocket plugin:  Open your not nulled wp-rocket plugin zip file. then go to /inc/functions and … Read more