Your SlideShare is downloading. ×
  • Like
WBN 2014/02 LT
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

WBN 2014/02 LT

  • 168 views
Published

引っ越しを考慮したテーマの作り方

引っ越しを考慮したテーマの作り方

Published in Design
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
168
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. 引っ越しを考慮した テーマの作り方 WordBench Nagoya 2014.02
  • 2. テンプレート <img src=“<?php echo get_stylesheet_uri(); ?>/ img/gazo.png” /> <script type="text/javascript" src="<?php echo get_stylesheet_uri(); ?>/js/jquery.js"></script> <link href="<?php echo get_stylesheet_uri(); ?>/ css/main.css" rel="stylesheet" type="text/css" />
  • 3. テンプレート 子テーマの場合は、 get_stylesheet_uri() の替わりに、 get_stylesheet_directory_uri() を使用します。
  • 4. home_url() → index.phpのあるフォルダ site_url() → WordPressのフォルダ get_stylesheet_uri() ( get_stylesheet_directory_uri() ) → テンプレートのフォルダ
  • 5. CSS $imgDir : “/WP/img”; body { background: url(#{$imgDir}/ bg.png);
  • 6. MAMP+Hoster
  • 7. WP Migrate DB
  • 8. 参考サイト MAMP http://www.mamp.info/en/index.html Hoster http://www.redwinder.com/macapp/hoster/ WP Migrate DB http:/wordpress.org/plugins/wp-migrate-db/