Posts

wordpress migration from live server to localhost

  1.       First download all the files and database backup(.sql) file 2.       Change the all domain names in .sql file 3.       Change the md5 hash password for wp_user admin, website url: https://www.md5hashgenerator.com/ 4.       Import all the tables into new database and change siteurl and homepage url in wp_options 5.       Change the configurations of “wp-config.php” 6.       Try to change permalink settings to – postname. https://youtu.be/Y9csUQYxdbs?si=LH67v3BT_dcoR1eA  

wordpress table prefix change

  Change table prefix 1.       Download all the wordpress site files and database(.sql) file 2.       Open wp-config.php file and change the current database credentials and change the $table_prefix name. 3.       Upload all the tables from .sql file to new database. Now select all the tables and right click and change table prefix name(rename). 4.       Change 2 tables value, assume your old prefix was ‘wp_’ UPDATE `wp_dart_usermeta` SET `meta_key` = REPLACE( `meta_key`, 'wp_', 'wp_dart_' );   UPDATE `wp_dart_options` SET `option_name` = 'wp_dart_user_roles' WHERE `option_name` = 'wp_user_roles';   5.       Now change 2 values more, go to ‘_options’ table of your new database and change the ‘siteurl’ and ‘home’ url by new value. 6.       You can also set new password if you forgot old ones for wp-admin, for that go to ‘_users’ table and pass the new md5 hash key. For generating md5 hash use this website:   https

wordpress cheatsheet

Image
wordpress cheatsheet link: https://docs.google.com/document/d/15gRGAB57iEFs_TGsqrk08_OZ36mX1yfsMKCYM6qX7gk/edit?usp=sharing We can develop our custom theme in wordpress. Let’s first understand the folder structure of wordpress. So, when you creating a new theme for your wordpress site, make sure you have putted 2 files inside /wp-content/themes/your-theme-name Files: style.css, screenshot.png/.jpg & index.php Now style.css contains information about this theme which we are going to develop. Style.css /* Theme Name: My Theme Description: This is a custom theme Author: Shimanta Das */ Now you can see below in our wordpress dashboard  “Appearance -> Theme” Topic: initialise .css and .js  & images files for wordpress theme First of all download a html/bootstrap theme from a site. Ex: https://themewagon.com/themes/free-bootstrap-5-digital-marketing-agency-template-growmark/  When you want to link those files you should use a function as “get_template_directory_uri()”. Let’s see