1. Copy files. (using xp machine)tgn to jss.chips.jp/norikoguide
2.
1. Copy files. (using xp machine)tgn to jss.chips.jp/norikoguide
2.
1.remove render blocking JS (tentative, not ideal)
1.1 Insert following extra script in header.php just above <?php wp_head(); ?> in both of child2 and child theme.
<script type=’text/javascript’ src=’http://japansightseeingtour.jp/wp-includes/js/jquery/jquery.js?ver=1.12.4′ async></script>
1.2.Insert the following in functions.php in both of child themes.
// Begin Custom Scripting to Move JavaScript from the Head to the Footer
function remove_head_scripts() {
remove_action(‘wp_head’, ‘wp_print_scripts’);
remove_action(‘wp_head’, ‘wp_print_head_scripts’, 9);
remove_action(‘wp_head’, ‘wp_enqueue_scripts’, 1);
add_action(‘wp_footer’, ‘wp_print_scripts’, 5);
add_action(‘wp_footer’, ‘wp_enqueue_scripts’, 5);
add_action(‘wp_footer’, ‘wp_print_head_scripts’, 5);
}
add_action( ‘wp_enqueue_scripts’, ‘remove_head_scripts’ );
// END Custom Scripting to Move JavaScript
2. Activate “autoptimize”.
wp-includes/default-filters.php
<script type=”text/javascript” src=”http://japansightseeing.chips.jp/jsstour/wp-includes/js/jquery/jquery.js?ver=1.12.4″></script>
/*
<?php
function my_delete_local_jquery() {
wp_deregister_script(‘jquery’);
}
add_action( ‘wp_enqueue_scripts’, ‘my_delete_local_jquery’ );
?>
*/
// Begin Custom Scripting to Move JavaScript from the Head to the Footer
function remove_head_scripts() {
remove_action(‘wp_head’, ‘wp_print_scripts’);
remove_action(‘wp_head’, ‘wp_print_head_scripts’, 9);
remove_action(‘wp_head’, ‘wp_enqueue_scripts’, 1);
add_action(‘wp_footer’, ‘wp_print_scripts’, 5);
add_action(‘wp_footer’, ‘wp_enqueue_scripts’, 5);
add_action(‘wp_footer’, ‘wp_print_head_scripts’, 5);
}
add_action( ‘wp_enqueue_scripts’, ‘remove_head_scripts’ );
// END Custom Scripting to Move JavaScript
<script type=’text/javascript’ src=’http://japansightseeing.chips.jp/jsstour/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1′></script>
<script type=’text/javascript’ src=’http://japansightseeing.chips.jp/jsstour/wp-includes/js/jquery/jquery.js?ver=1.12.4′></script>
/?hl=en
copy norikoguide.pepper.jp/en -> norikoguide.pepper.jp/tgnwork
1. Use old FFFTP on old NEC xp.; copy all files from /en/ to /tgnwork @17/10/27
2. Duplicate database with different prefix.; Time limitation at Lolipop is inconvenient, so that database is better exported to home debian; manipulating at debian-home: tables with wp1_ prefix are duplicted to tables with wp1c_ prefix; then import into original database@lolipop.
2.1. export database LAA0242974-f1qyds @norikoguide.pepper.jp :Note: in zip (important!)
2.2. import into database wpkiyoshi (wpnakym)( this serves as working database) @192.168.0.17
2.3. on wpkiyoshi(wpnakym): delete tables other than wp1_ , then change prefix wp1_ to wp1c_, then export it.
2.4. import exported working database into original database LAA0242974-f1qyds @norikoguide.pepper.jp
3.
Contact Form 7: ver.4.7; upto wp4.7.3 ; must be 4.6 or higher; updated 1 week ago
Custom Field Template: Version: 2.3.7:Last Updated: 10 months ago: Requires WordPress Version: 2.1 or higher Compatible up to: 4.5.7
Custom Post Type UI: Version: 1.5.2:Author: WebDevStudios:Last Updated: 1 month ago:Requires WordPress Version: 4.6 or higher:Compatible up to: 4.7.3
TinyMCE Advanced:
WPtouch Mobile Plugin
Dynamic Widgets
NextGEN Gallery
1. Prepare new WordPress at PC (download from WP.org and unzip.)
2. Upload 1. to clean new site or directory. (Don’t install.)
3. Delete /wp-content of 2.
4. Ftp download whole old site or directroy to PC.
5. Ftp upload the /wp-content of 4.
Screen option on widget page( appearance->widget) will toggle display.
1. Web Server Ownership
The first level is actually to make sure that your web server has ownership over the directories:
chown -R www-data:www-data your-wordpress-directory
2. Directory Permissions
The second level is also required – you must make sure that the directory permissions are properly set:
sudo find /var/www/wordpress/ -type d -exec chmod 755 {} \;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} \;
I’ve found that most solutions posted on the web show part two but skip the first part.