Tag: WordPress/テーマ
/* Theme Name: Twenty Fifteen Child Theme URI: http://example.com/twenty-fifteen-child/ Description: Twenty Fifteen Child Theme Author: John Doe Author URI: http://example.com Template: twentyfifteen Version: 1.0.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: twenty-fifteen-child */
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); }
$ unzip supertheme.zip $ cd supertheme $ git init $ git add . $ git commit -m "Import supertheme 1.0" $ git tag v1.0 $ git branch upstream
$ cd wordpress $ git checkout upstream $ rm -r * $ (cd .. && unzip supertheme-1.1.zip) $ git add . $ git commit -a -m 'Import supertheme 1.1' $ git tag v1.1 $ git checkout master $ git merge upstream
#!/bin/sh set -eux themesdir=/home/tanaka/public_html/wp/wp-content/themes curname=simplicity2 newname=simplicity2.new oldname=simplicity2.old sudo rm -rf "$curname" unzip $1 sudo chown nginx.nginx -R "$curname" if [ -d "$themesdir/$oldname" ]; then echo "$themesdir/$oldname exists" sudo rm -rf "$themesdir/$oldname" fi sudo mv "$themesdir/$curname" "$themesdir/$oldname" sudo mv "$curname" "$themesdir"