Upgrade to Pro — share decks privately, control downloads, hide ads and more …

クライアントワークのオリジナルテーマ制作

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

 クライアントワークのオリジナルテーマ制作

WordCamp Tokyo 2019 セッション。「クライアントワークのオリジナルテーマ制作 〜実務でのWebサイト構築の抑えどころ〜」の資料です。

Avatar for Masahiro NAKASHIMA

Masahiro NAKASHIMA

November 02, 2019
Tweet

More Decks by Masahiro NAKASHIMA

Other Decks in Programming

Transcript

  1. Profile • WP CSV Exporter • WP Theme Test •

    Adjust Admin Categories • WP Taxonomy Import • Check Copy ContentsʢCCCʣ ...߹ܭ11ϓϥάΠϯ
  2. Profile ΠϚίί 2005 2019 ϑϦʔͷ8&#σβΠφʔ .PWBCMF5ZQF 8PSE1SFTT )5.-$44 1)1 +BWB4DSJQU

    2012 ೥౓࢓ࣄͷׂ߹ σβΠϯ  ϑϩϯτΤϯυ  1)1  8PSE1SFTTؔ܎ 
  3. function author_page_redirect() { if( is_author() ) { wp_redirect( home_url()); exit;

    } } add_action( 'template_redirect', 'author_page_redirect' ); functions.php
  4. h2 { font-size: 24px; color: #70462E; } strong { color:

    #70462E; font-weight: bold; } em { font-style: italic; font-weight: bold; } editor-style.css ←ཁૉηϨΫλͰࢦఆ
  5. .content h2 { font-size: 24px; color: #70462E; } .content strong

    { color: #70462E; font-weight: bold; } .content em { font-style: italic; font-weight: bold; } styles.css singular.php <div class=“content”> <?php the_content() ?> </div>
  6. @import “_config"; h2 { font-size: 24px; color: #70462E; } strong

    { color: #70462E; font-weight: bold; } em { font-style: italic; font-weight: bold; } editor-style.scss styles.scss @import “_config"; @import "components/_content"; components/ _content.scss .content { @import "../editor-style.scss"; }
  7. template-parts/blocks/advanced-posts-blocks/posts.php <div class="row"> <?php if ( $query->have_posts() ) : ?>

    <?php while ( $query->have_posts() ) : $query->the_post(); ?> <div class="col-md-4"> <article <?php post_class('news'); ?>> <div class="news_pic"> <?php the_post_thumbnail('medium'); ?> </div> <h2><?php the_title(); ?></h2> </article> </div> <?php endwhile; ?> <?php wp_reset_postdata(); ?> <?php endif; ?> </div>
  8. ϫʔΫϑϩʔ σβΠϯ )5.- 8PSE1SFTT ϫΠϠʔ ϫΠϠʔ ʢϒϩοΫΤσΟλʔʣ σβΠϯ )5.- աڈʹͭͬͨ͘ϒϩοΫΛར༻ɺ

    ඞཁ࠷௿ݶͷ)5.-੍࡞ 8PSE1SFTT աڈʹͭͬͨ͘ϒϩοΫΛར༻ɺ ඞཁ࠷௿ݶͷϒϩοΫ੍࡞ ͜Ε·Ͱ ϒϩοΫΤσΟλʔ ϫΠϠʔ ʢϒϩοΫΤσΟλʔʣ σβΠϯ ϔομʔɺϑολʔͳͲ )5.- ඞཁ࠷௿ݶͷ)5.-੍࡞ 8PSE1SFTT ඞཁ࠷௿ݶͷϒϩοΫ੍࡞ ϒϩοΫΤσΟλʔ ରԠςʔϚ