Log into google cloud console and go to your project. Go to compute engine section and locate the virtual machine. Instance associated with WordPress website. Click on the SSH button next to the VM instance to open a secure shell connection to the server Then use the required commands to install the latest version of… Continue reading Steps to follow in GCP on WordPress PHP updates.
Category: Wordpress
Critical Error handling while updating plugins
Sometimes in the process of PHP updation or plugin updation in wordpress,we may get into critical error in our site and our admin dashboard may not be accessed. Sometimes it may be necessary to deactivate all plugins, but you can’t access the Administration Screens to do so. In this case,we can deactivate plugins in two… Continue reading Critical Error handling while updating plugins
Updraft Plus – Plugin to take back up in wordpress
UpdraftPlus – Backup/Restore By UpdraftPlus.Com, DavidAnderson simplifies backups and restoration of wordpress website.In a single click,webite can be backed up ito google cloud. UpdraftPlus: Restores, as well as backing up Backs up to more cloud options than any others Allows you to set up automatic backup schedules, for the ultimate in convenience Is faster, using up… Continue reading Updraft Plus – Plugin to take back up in wordpress
Before PHP Updation in wordpress
PHP is one of the programming languages that WordPress is built on.So for a faster and secure website,latest PHP version is as important as updated themes and plugins. There are two main benefits to keeping PHP up-to-date: Website may be faster because PHP becomes more efficient with each new version. Updating to WordPress’s recommended version (currently… Continue reading Before PHP Updation in wordpress
How to find httpd.conf file in wordpress
In a typical WordPress installation, the httpd.conf file is not directly accessible or editable from within the WordPress dashboard. The httpd.c To find the httpd.conf file in Google Cloud Platform (GCP), you need to access your virtual machine instance and navigate to the appropriate directory. To find the httpd.conf file in GCP: Log in to… Continue reading How to find httpd.conf file in wordpress
Downloading a file on clicking on a link
HTML <a> download Attribute is used to download a file when clicking on the link (instead of navigating to the file). Example: <a href=”./completefile.pdf” download class=”download-btn”>Download eBook </a> The download attribute specifies that the target (the file specified in the href attribute) will be downloaded when a user clicks on the hyperlink. Can be used with or without a filename value: Without… Continue reading Downloading a file on clicking on a link
How to disable and enable the scroll in website(Java Script)
In this section we can see how we can disable and enable scrolling option in an ecommerce website using javascript function. First of all we have to set up a block of code in the respective page. // PREVENT DEFAULT HANDLERfunction preventDefault(e) { e = e || window.event; if (e.preventDefault) { e.preventDefault(); } e.returnValue =… Continue reading How to disable and enable the scroll in website(Java Script)
How to add a menu to wordpress dashboard
The add_menu_page function in WordPress is used to add a top-level menu page in the WordPress dashboard. Here’s the basic syntax of the add_menu_page function: add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = ”, string $icon_url = ”, int $position = null ) Parameters in the function are: $page_title (string): The… Continue reading How to add a menu to wordpress dashboard
How to fetch the Category id in WordPress
We can add categories in the insights menu option in wordpress. These categories are able to view in Insights > Insights Category option in the dashboard of a wordpress page. These categories can be used as contents in the themes as well. So lets see how can we get the Id of these fields and… Continue reading How to fetch the Category id in WordPress
Adding image field in ACF plugin
To add an image field using the Advanced Custom Fields (ACF) plugin in WordPress, you can follow these steps: Make sure the ACF plugin is installed and activated on your WordPress site. In your WordPress admin dashboard, go to “Custom Fields” and click on “Add New” to create a new field group. Enter a title… Continue reading Adding image field in ACF plugin