SpeedUp jsstour.jp (1)

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_head() related

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>

wp migration/copy inside lolipop site

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.

 

WP Plugins catch up status

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:

  • Version: 4.4.3
  • Author: Andrew Ozz
  • Last Updated: 3 months ago
  • Requires WordPress Version: 4.7 or higher
  • Compatible up to: 4.7.3

WPtouch Mobile Plugin

  • Version: 4.3.13.1
  • Author: WPtouch
  • Last Updated: 5 days ago
  • Requires WordPress Version: 4.2 or higher
  • Compatible up to: 4.7.3

Dynamic Widgets

  • Version: 1.5.12
  • Author: Qurl
  • Last Updated: 7 months ago
  • Requires WordPress Version: 3.0.0 or higher
  • Compatible up to: 4.6.4

NextGEN Gallery

  • Version: 2.2.1
  • Author: Imagely
  • Last Updated: 10 hours ago
  • Requires WordPress Version: 4.0.0 or higher
  • Compatible up to: 4.7.3

WP migration final?

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.

WordPress Could Not Create Directory

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.