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

WordPress_テーマのつくりかた.pdf

 WordPress_テーマのつくりかた.pdf

Takashi Kitajima

December 23, 2019
Tweet

More Decks by Takashi Kitajima

Other Decks in Technology

Transcript

  1. w %#಺ͷ஋΍ίϯςϯπΛऔಘ͢ΔͨΊʹ࢖༻͢Δ ؔ਺ w ྫ͑͹ɺHFU@IFBEFS ɺUIF@UJUMF ɺUIF@QPTU ͳͲ w 8PSE1SFTTͷઃఆ΍ίϯςϯπ͸શ෦%#ʹೖͬͯ

    ͍ΔͷͰ42-Ͱͱͬͯ͘Δ͜ͱ΋Ͱ͖Δ͚Ͳɺςϯ ϓϨʔτλά͕͋Δ৔߹͸ʮઈରʹʯςϯϓϨʔτ λάΛ࢖͍·͠ΐ͏ ςϯϓϨʔτλάͱ͸
  2. wp_enqueue_script( ‘ϋϯυϧ໊’, get_theme_file_uri( ‘/js/app.js’ ), [ ‘ઌʹಡΈ͍ͨ JS ͷϋϯυϧ໊’, …

    ], filemtime( get_theme_file_path( ‘/js/app.js’ ) ), true // ϑολʔ = trueɺhead = false );
  3. w ʮΤσΟλʔͷதʹೖྗͨ͠จࣈʯ Λ૷০ w )5.-͕Α͘͜ΘΕΔͷͰɺ)5.- ͷཧղ͕ඞཁ ৽چΤσΟλʔͷ͕͍ͪ w ϒϩοΫΛॏͶͯίϯςϯπΛߏ੒ w

    )5.-Λॻ͔ͤͳ͍ͱ͍͏ڧ͍ҙࢤ w ಠࣗʹϒϩοΫΛ௥Ճ͢Δʹ͸ +BWB4DSJQUྗ 3FBDU +49 ͕ඞ ཁ ΫϥγοΫΤσΟλʔ ϒϩοΫΤσΟλʔ