wordpressã§ç¬èªã®ãã¼ã¸ãã³ãã¬ã¼ããä½æãã¦åºå®ãã¼ã¸ã«é©ç¨ããããã®æé
ã¯ããã«
wordpressã§ã¯ãã¼ã¸ã®ç¨®é¡ã¨ãã¦åºå®ãã¼ã¸ãæ稿ãã¼ã¸ãªã©ãããã¾ãããåºå®ãã¼ã¸ã¯åºå®ãã¼ã¸ç¨ã®ãã³ãã¬ã¼ããæ稿ãã¼ã¸ã¯æ稿ãã¼ã¸ç¨ã®ãã³ãã¬ã¼ããèªã¿è¾¼ãã§è¡¨ç¤ºãã¦ãã¾ããããã¦wordpressã§ã¯ãåºå®ãã¼ã¸ã«å¯¾ãã¦ç¬èªã®ãã¼ã¸ãã³ãã¬ã¼ããä½æãã¦èªã¿è¾¼ã¾ãããã¨ãã§ãã¾ãã ç¨éã¨ãã¦è¯ãããã®ããã»ã¨ãã©ã®åºå®ãã¼ã¸ã§ã¯ãµã¤ããã¼ã表示ãããã©ãç¹å®ã®ãã¼ã¸ã§ã¯ãµã¤ããã¼ã表示ããããªãå ´åãªã©ã§ãããã®å ´åã¯ãµã¤ããã¼ã表示ããªããã¼ã¸ãã³ãã¬ã¼ããç¨æãã¦èªã¿è¾¼ã¾ãã¾ãã以ä¸ã§ã¯ãã®ãµã¤ããã¼ã表示ããªããã¼ã¸ãã³ãã¬ã¼ãã®ä½æã¨ããããåºå®ãã¼ã¸ã§èªã¿è¾¼ã¾ããã¾ã§ã®æé ãã¡ã¢ãã¾ãã
ç°å¢ã«ã¤ãã¦
ç°å¢ã¯ä»¥ä¸ã§ãã
- OS : OS X El Capitan ver 10.11.3
- wordpressã®åä½ç°å¢ : MAMP 3.0.7.3ã使ç¨
- wordpress : ver 4.4.2
- wordpressã§ä½¿ç¨ãããã¼ã : Twenty Sixtenn
åºå®ãã¼ã¸ã®ãã¼ã¸ãã³ãã¬ã¼ãã«ã¤ãã¦
ã¯ããã«åºå®ãã¼ã¸ã®ãã¼ã¸ãã³ãã¬ã¼ããããã©ã«ãã§ã©ããªã£ã¦ããããã¡ã¢ãã¦ããã¾ãã 以ä¸ã¯åºå®ãã¼ã¸ã®æ°è¦ä½æç»é¢ã§ãããç»é¢å³å´ã«ããã¼ã¸å±æ§ãã¨ããé ç®ãããã¾ãããã®ä¸ã®ããã³ãã¬ã¼ãããå¤æ´ãããã¨ã§ãã®åºå®ãã¼ã¸ã§ä½¿ç¨ãããã¼ã¸ãã³ãã¬ã¼ããå¤æ´ã§ãã¾ããæ¨æºã§ã¯ãããã©ã«ããã³ãã¬ã¼ããã¨ãªã£ã¦ãã¾ãã
ããã¦Twenty Sixteenã§ã¯ããã®ããã©ã«ããã³ãã¬ã¼ãã¯ä»¥ä¸ã®ããã«ãã¼ããã©ã«ãã«ãããpage.phpãã該å½ãã¾ãããªãã大ä½ã®ãã¼ãã§ã¯åºå®ãã¼ã¸ã®ããã©ã«ããã³ãã¬ã¼ãã¨ãã¦ãpage.phpãã¨ããååã«è¨å®ãã¦ãã¾ãããä¸ã«ã¯ãcontent-page.phpããªã©éãååã«ãªã£ã¦ããå ´åãããã¾ããåãã¼ãã§ã©ã®ãã¡ã¤ã«ãåºå®ãã¼ã¸ã®ããã©ã«ããã³ãã¬ã¼ãã¨ãªã£ã¦ãããã¯ãä½æè ãµã¤ããªã©ã§ç¢ºèªã§ããã¨æãã¾ãã
ãã®ãpage.phpãã®ä¸é¨ãä¿®æ£ãã¦ç¬èªã®ãã¼ã¸ãã³ãã¬ã¼ããä½æããä¸è¨ã§èª¬æããããã¼ã¸å±æ§ãã®ããã³ãã¬ã¼ããã§é¸æã§ããããã«ãã¾ãããã®ä½æ¥ã«ãã£ã¦ä»»æã®åºå®ãã¼ã¸ã§ç¬èªã®ãã¼ã¸ãã³ãã¬ã¼ãã使ç¨ãããã¨ãã§ãã¾ãããã®ä½æ¥æé ã以ä¸ã«ã®ãã¾ãã
ãã¼ã¸ãã³ãã¬ã¼ãã®ä½æ
å®éã«ãã¼ã¸ãã³ãã¬ã¼ããä½æãã使ç¨ããæé ãã¡ã¢ãã¾ããã¨ãã£ã¦ãé常ã«ç°¡åã§ãã以ä¸ã¯wordpressã®æ¨æºãã¼ãã§ããTwenty Sixteenã使ç¨ãã¦ãã¾ãããTwenty Fifteenããã®ä»ã®ãã¼ãã§ãã»ã¨ãã©åæ§ã®æé ã§ãã ã¾ããTwenty Sixteenã®ãã¼ããã©ã«ãã«ãããpage.phpãã®ä¸èº«ãã³ãã¼ãããã®ãããã¡ã¤ã«åãpage-nosidebar.phpãã¨ãã¦ãã¼ããã©ã«ãç´ä¸ã«ä½æãã¾ããç¶ãã¦ãã®ä¸èº«ã以ä¸ã®ããã«ä¿®æ£ãã¾ãã
<?php
/**
* Template Name: page-nosidebar
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that
* other "pages" on your WordPress site will use a different template.
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
// Start the loop.
while ( have_posts() ) : the_post();
// Include the page content template.
get_template_part( 'template-parts/content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
// End of the loop.
endwhile;
?>
</main><!-- .site-main -->
<?php get_sidebar( 'content-bottom' ); ?>
</div><!-- .content-area -->
<?php // get_sidebar(); ?>
<?php get_footer(); ?>
ä¸è¨ã®ãpage-nosidebar.phpãããpage.phpãã¨éãã®ã¯ä»¥ä¸ã®ï¼ç®æã ãã§ãã
- åé ï¼è¡ç®ã«
Template Name : page-nosidebar
ã追è¨ãã¦ãã - æ«å°¾ï¼ï¼è¡ç®ã®ãµã¤ããã¼è¡¨ç¤ºé¨åã§ãã
get_sidebar();
ãã³ã¡ã³ãåãã¦ãã
Template Name : page-nosidebar
ãè¨è¿°ãããã¨ã§ãwordpressã®åºå®ãã¼ã¸ä½æç»é¢ã®ããã¼ã¸å±æ§ãâããã³ãã¬ã¼ãããããpage-nosidebarããé¸æã§ããããã«ãªãã¾ãããã®Template Name
ããªãã¨é¸æè¢ã¨ãã¦ã§ã¾ããã
ãã¨ã¯get_sidebar();
ãã³ã¡ã³ãåãã¦ãµã¤ããã¼ãæ¶ãã¦ãã¾ãã
ããã ãã§ãµã¤ããã¼ã表示ããªãåºå®ãã¼ã¸ç¨ã®ãã¼ã¸ãã³ãã¬ã¼ããå®æã§ãã
ããã¦å¾ã¯ä»¥ä¸ã®ããã«ãpage-nosidebar.phpããé©ç¨ãããåºå®ãã¼ã¸ä½æç»é¢ã§ãããã³ãã¬ã¼ããããpage-nosidebarãã«ãã¦å ¬éãã¾ãã
以ä¸ã®ããã«ãµã¤ããã¼ã表示ãããªãåºå®ãã¼ã¸ã«ãªãã¾ãã以ä¸ã¯ãã¼ãã¨ãã¦Twenty Sixteenã使ç¨ãã¦ãã¾ãã
以ä¸ã§ãã¼ã¸ãã³ãã¬ã¼ãã®ä½æã¨é©ç¨ã¯å®äºã§ãã
ã¾ã¨ã
ä¸è¨ã®ããã«èªç±ã«ã«ã¹ã¿ãã¤ãºãããã¼ã¸ãã³ãã¬ã¼ããä»»æã®åºå®ãã¼ã¸ã«é©ç¨ã§ããã¨ãwordpressã使ã£ã¦ã§ãããã¨ã®å¹ ãåºããã¨æãã¾ãããªããä¸è¨ã§ã¯ä½æãããã¼ã¸ãã³ãã¬ã¼ãããã¼ããã©ã«ãç´ä¸ã«ç½®ãã¾ããããwordpress3.5ãããããã¯ãã¼ããã©ã«ãå ã®ãã©ã«ããå帰çã«ãã§ãã¯ãã¦ãã¼ã¸ãã³ãã¬ã¼ããè¦ã¤ãã¦ããããããªã®ã§ãæ´çãããå ´åã¯ãã©ã«ããä½æãã¦ç¨éãåããã¼ã¸ãã³ãã¬ã¼ããã¾ã¨ãã¦å ¥ãã¦ããã¨ããããããã¾ããã
é¢é£è¨äº
- å ¬éæ¥ï¼2020/01/03 æ´æ°æ¥ï¼2020/01/03
WordPressã®ããããã¼ã¸ã§ç¹å®ã«ãã´ãªãé¤å¤ãéå®ãªã©ãã£ã«ã¿ãã¦è¡¨ç¤ºããã«ã¹ã¿ãã¤ãº
ãã®è¨äºã§ã¯ãæ稿ãã¼ã¸ã®ã«ãã´ãªããã£ã«ã¿ãã¦ãç¹å®ã®ã«ãã´ãªã®æ稿ãã¼ã¸ãè¨äºä¸è¦§ããé¤å¤ããããéã«ç¹å®ã®ã«ãã´ãªã®æ稿ãã¼ã¸ã®ã¿ãè¨äºä¸è¦§ã«å«ããããã®ã«ã¹ã¿ãã¤ãºæ¹æ³ãã¾ã¨ãã¾ããé常ã«ç°¡åã§ãã
- å ¬éæ¥ï¼2019/05/26 æ´æ°æ¥ï¼2019/05/26
WordPressã§Javascriptã§ã¯ãªãPHPã使ã£ã¦ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ããè¡ãæé
ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ããè¡ãã©ã¤ãã©ãªã¨ãã¦Javascriptã®highlight.jsãæåã§ãããJavascriptã§ã¯ãªãPHPçã®highlight.phpã¨ãããã®ãããã¾ãããã®è¨äºã§ã¯ãWordPressã§highlight.phpã使ç¨ããæé ãã¾ã¨ãã¾ãã
- å ¬éæ¥ï¼2019/05/23 æ´æ°æ¥ï¼2019/05/23
WordPressãµã¤ããå ¬å¼ãã©ã°ã¤ã³ã使ã£ã¦AMP対å¿ãããçµæã¨æé
Google Analyticsããã¢ãã¤ã«è¡¨ç¤ºã®åé¡ãæ·±å»ã®ãã対å¿ããããã¡ã¼ã«ãå±ãã¦ãã¾ãããããã¦ãã®ä¸ã§WordPresså ¬å¼ã®AMPãã©ã°ã¤ã³çã使ç¨ããããæ¸ããã¦ããã®ã§å®éã«å°å ¥ãã¦ã¿ã¾ããããã®è¨äºã§ã¯ãã®æé ãã¡ã¢ãã¾ãã
- å ¬éæ¥ï¼2019/05/15 æ´æ°æ¥ï¼2019/05/15
ConoHa WINGã§WordPressãµã¤ããæ°ããæ§ç¯ããæé
WordPressãµã¤ããæ§ç¯ããéã«ãç¾å¨ã¯è²ã ãªã¬ã³ã¿ã«ãµã¼ããããé¸æè¢ãè±å¯ã§ããä»åã¯GMOã¤ã³ã¿ã¼ãããæ ªå¼ä¼ç¤¾æ§ãæä¾ããConoHa WINGã¨ããã¬ã³ã¿ã«ãµã¼ãä¸ã«WordPressãå®éã«æ§ç¯ãã¦ã¿ãã®ã§ãã®æé ãã¾ã¨ãã¾ãã
- å ¬éæ¥ï¼2019/05/15 æ´æ°æ¥ï¼2019/05/15
ConoHa WINGã¸ã®ç§»è¡ã«ãããµã¤ã表示é度ãåçã«æ¹åãããã®ã§ãã®çµæã¨ç§»è¡æé ã«ã¤ãã¦ã®ã¾ã¨ã
ãã®åº¦ãã®ãµã¤ããConoHa WINGã«ç§»è¡ããã¨ãããäºæ³ã大ããä¸åãæ¹åã¨ãªãã¾ããããã®è¨äºã§ã¯ãå®éã®æ¹åçµæã®è©³ç´°ã¨ãä»ã®ã¬ã³ã¿ã«ãµã¼ãä¼ç¤¾æ§ããConoHa WINGã¸ã®ç§»è¡ã®ããã«è¡ã£ãæé ãã¾ã¨ãã¾ãã
éçºã¢ããª
æ¯æ¥ã®å°ããªåºæ¥äºããªãã§ãè¨é²ãã¦ããã°ã¨ãã¦æ®ãããã®ã©ã¤ããã°ã¢ããªã§ãã