ã¯ããã«
以åã®èšäºã§ã¯ãçŽç²ãªCSSã§ã®ã¬ã€ã¢ãŠãã®ååãšBootstrapã®äœ¿çšã«ã€ããŠèŠãŠããŸããã ä»æ¥ã®èšäºã§ã¯ã人æ°ã®ããCMSã®ã¬ã€ã¢ãŠãã®æ©èœã«ã€ããŠæ€èšãå§ããŠããŸãã æã人æ°ã®ããWordPressããå§ããŸãããã WordPressãæ¢ã«ã€ã³ã¹ããŒã«ãããŠããããã³ãã¬ãŒãã®äœæã«çŽæ¥é²ãã§ãããšæ³å®ããŠããŸããããã¯ãåŒãç¶ãPcklaboratoryã®Corporate BlueãšããŠäœ¿çšããŸãã WordPressã®ã€ã³ã¹ããŒã«æ¹æ³ãããããªãå Žåã¯ãæé ãåç §ããŠãã ãã ã ãã®ã¬ã€ãã§ã¯ãCSSã¹ã¿ã€ã«ãšHTMLã³ãŒãã«ã€ããŠã¯è©³ãã説æããŸãããããã«ã€ããŠã¯ã以åã®èšäºã§æ¢ã«èª¬æããŠããŸãã 代ããã«ãWordPresså°çšã®ããŒããäœæããæ©èœã詳现ã«æ€èšããŸãã
ãããã¯ãè¿œå ãã
ãŸããthemesãã©ã«ããŒã§ããwhitesquareããã³ãã¬ãŒããã©ã«ããŒãäœæããŸãã ããã«ã¯ãimagesãã©ã«ããŒãš2ã€ã®å¿ èŠãªç©ºã®index.phpããã³style.cssãã¡ã€ã«ãå«ãŸããŸãã

次ã®ã¹ãããã¯ãããŒãã®ã¹ã¯ãªãŒã³ã·ã§ãããè¿œå ããããšã§ãã ã¡ã€ã³ããŒãžã®ç»åãã880x660ãµã€ãºã®psdã¬ã€ã¢ãŠããããscreenshot.pngãšããååã§whitesquareããŒããã©ã«ããŒã«ä¿åããŸãã
ãã®åŸããã§ã«ããŒãã䜿çšã§ããŸãã httpïŒ// {site-name} / wp-adminã®ç®¡çããã«ã«ç§»åããããŒã管çã«ç§»åããŸãïŒå€èŠ³->ããŒãïŒã ãã¯ã€ãã¹ã¯ãšã¢ã®ããŒãã¯æ¢ã«ãªã¹ãã«è¡šç€ºãããŠããã¯ãã§ãã ãããã¯ã«ã«ãŒãœã«ãåãããŠã[ã¢ã¯ãã£ãå]ãã¯ãªãã¯ããŸãã

ãããã¯ãã¢ã¯ãã£ãã«ãªããšããµã€ããžã®ãªã³ã¯ãå«ãã¡ãã»ãŒãžã衚瀺ãããŸãã ãã§ã«ãããã«è¡ã£ãŠç©ºçœã®ããŒãžãèŠãããšãã§ããŸãã
äºåæ€æ»

ã¬ã€ã¢ãŠããèŠããšãããŒãžãããããŒãšããã¿ãŒã§æ§æãããŠããããã¹ãŠã®ããŒãžã§ç¹°ãè¿ãããŠããããšãããããŸãã ãŸããã¡ã€ã³ããŒãžãé€ããã¹ãŠã®ããŒãžã§ãå·ŠåŽã«ãµã€ãããŒããããŸãã ã¬ã€ããããæ®éçã«ããããã«ãã¡ã€ã³ã¡ãã¥ãŒããŒãžããWordPressããŒãžãïŒããŒãžïŒãšããŠããµãã¡ãã¥ãŒããŒãžãã³ã¡ã³ãä»ãã®ãWordPressããã°æçš¿ãïŒæçš¿ïŒãšããŠèšèšããŸãããã ã¡ã€ã³ããŒãžã¯ãç¬èªã®ã¬ã€ã¢ãŠããæã€ç¬ç«ããããŒãžïŒããã³ãããŒãžïŒãšããŠäœæãããŸãã WordPressããŒãžã¯ããŒã¿ããŒã¹å ã§2ã€ã®æ¹æ³ïŒããŒãžãŸãã¯æçš¿ãšããŠïŒã§å®è£ ã§ãããšããäºå®ã«ãããããããã¿ã€ãã®ã¿ãç°ãªããŸããããã³ãã¬ãŒããäœæãããšãã¯å°ãç°ãªãæ¹æ³ã§åŠçãããããšã«æ³šæããŠãã ããã ããã¯å°ãäœãèŠããŸãã
ããŒãžæ§é
ã»ãšãã©ã®WordPressããŒãäœæã¬ã€ãã§ã¯ãã¬ã€ã¢ãŠããšã¹ã¿ã€ã«ã®äœæã«å¶éãããŠããŸãã æäŸãããã¬ã€ã¢ãŠãã®ãã¬ãŒã ã¯ãŒã¯å ã§ãWordPressã§æ¬æ ŒçãªWebãµã€ããäœæããæé å šäœã説æããŸãã
ããŒãžæ§é ããå§ããŸãããã ããŒãžãè¿œå ããåã«ããŸãèšå®ã«ç§»åããŠãªã³ã¯ã¹ã¿ã€ã«ãæå®ããå¿ èŠããããŸããèšå®->ããŒããªã³ã¯èšå®->æçš¿åã ããã«ããããhttpïŒ// site_name / page_nameãã®åœ¢åŒã§ãªã³ã¯ãäœæã§ããŸãã
ããŒãžã®è¿œå ã¯ã管çããã«ããè¡ããŸãïŒããŒãž->æ°èŠè¿œå ã [é åº]ãã£ãŒã«ãã®[ããŒãžå±æ§]é åã®åããŒãžã«ã€ããŠãã¡ã€ã³ã¡ãã¥ãŒã§æ°åã䜿çšããŠããŒãžã®é åºãæå®ããŸãã
è¿œå åŸãããŒãžã®ãªã¹ãã¯æ¬¡ã®ããã«ãªããŸãã

ãã¹ãŠã®ããŒãžãè¿œå ãããããããŒã ããŒãžãã¡ã€ã³ããŒãžã«ãªãããšã瀺ãå¿ èŠããããŸãã ãããè¡ãã«ã¯ã[èšå®]-> [èªã¿åã]ã«ç§»åãã[ããã³ãããŒãžã®è¡šç€º]ãã£ãŒã«ãã§ä»¥äžãæå®ããŸããéçããŒãž->ããŒã ã
Header.phpããã³Footer.php
WordPressçšèªã®åžœåã¯ããµã€ãã¬ã€ã¢ãŠãã®èŠèŠçãªããããŒã ãã§ã¯ãããŸããã å®éããµã€ãã®ãã¹ãŠã®ããŒãžã®å é ã«è¡šç€ºããããã¹ãŠã®å ±éã³ãŒããå«ãŸããŠããŸãã ãã³ãã¬ãŒããã©ã«ããŒã«header.phpãã¡ã€ã«ãäœæããå 容ãå ¥åããŸãã
<!doctype html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=<?php bloginfo('charset'); ?>"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div class="wrapper">
headã¿ã°å ã§ãWordPressã§æå®ããããšã³ã³ãŒããããŒãžã¿ã€ãã«ãããã³pingbackïŒä»ã®ãµã€ããšã®éä¿¡çšïŒãèšå®ããŸãã æåŸã®è¡ã§ãWordPressããããŒãè¿œå ããwp_headïŒïŒã³ãã³ããåŒã³åºããŸãã ã©ãããŒãããã¯ãéããŸãã
ããã«ãcssãã¡ã€ã«ãšjsãã¡ã€ã«ãæ¥ç¶ããå¿ èŠããããŸãã çŸåšã®ããŒãžã§ã³ã®wordpressã§ã¯ãããã¯header.phpã§çŽæ¥è¡ãããã®ã§ã¯ãªããç¹å¥ãªé¢æ°ã§ã®æ¥ç¶ãä»ããŠè¡ãããŸãã ãããè¡ãã«ã¯ãããŒãå ã§functions.phpãã¡ã€ã«ãéãã次ã®ã³ãŒããè¿œå ããŸãã
function enqueue_styles() { wp_enqueue_style( 'whitesquare-style', get_stylesheet_uri()); wp_register_style('font-style', 'http://fonts.googleapis.com/css?family=Oswald:400,300'); wp_enqueue_style( 'font-style'); } add_action('wp_enqueue_scripts', 'enqueue_styles'); function enqueue_scripts () { wp_register_script('html5-shim', 'http://html5shim.googlecode.com/svn/trunk/html5.js'); wp_enqueue_script('html5-shim'); } add_action('wp_enqueue_scripts', 'enqueue_scripts');
enqueue_stylesé¢æ°ã§ãå¿ èŠãªã¹ã¿ã€ã«ãç»é²ããŠæ¥ç¶ãããã®é¢æ°ãã¹ã¿ã€ã«ã®æ¥ç¶ã§ããããšãWordPressã«ç€ºããŸããã åæ§ã«ãå€ããã©ãŠã¶ã§html5ã¿ã°ã衚瀺ããããã«å¿ èŠãªjsãã¡ã€ã«ã«ã€ããŠãåæ§ã§ãã
ããã¿ãŒã¯ããããŒã«äŒŒãŠããŸã-ãµã€ãã®ãã¹ãŠã®ããŒãžã®æåŸã«è¡šç€ºãããå ±éã³ãŒããå«ãŸããŠããŸãã ãã®å 容ãfooter.phpãã¡ã€ã«ã«æžããŸãããã
</div> <footer></footer> <?php wp_footer(); ?> </body> </html>
ããã§ãéããŠãããããã¯ãéããŠwp_footerïŒïŒãåŒã³åºããWordPressããã¿ãŒã¹ã¯ãªãããè¿œå ããŸãã
ããŒãžãã³ãã¬ãŒã
次ã®ã¹ãããã§ã¯ãéåžžã®WordPressããŒãžãã³ãã¬ãŒããäœæããå¿ èŠããããŸãã
ããŒããã©ã«ããŒã«page.phpãã¡ã€ã«ãäœæãã次ã®ã³ãŒããè¿œå ããŸãã
<?php get_header(); ?> <div class="main-heading"> <h1><?php the_title(); ?></h1> </div> <section> <?php if (have_posts()): while (have_posts()): the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?> </section> <?php get_footer(); ?>
ããã§ã¯ãããããŒãã¡ã€ã«ãšããã¿ãŒãã¡ã€ã«ãæ¥ç¶ããããŒãžåãããã¯ãäœæããã»ã¯ã·ã§ã³ã¿ã°å ã®ããŒãžããã³æçš¿ã®ã³ã³ãã³ããåºåããããã®æšæºãããã¯ãæ¿å ¥ããŸããã
次ã«ãçµæã®ããŒãžã®ã¹ã¿ã€ã«ãèšå®ããå¿ èŠããããŸãã èæ¯ãimages / bg.pngããã³images /h1-bg.pngãã¡ã€ã«ã«ä¿åããŸãã 次ã«ãstyle.cssãã¡ã€ã«ã«ããã€ãã®åºæ¬çãªã¹ã¿ã€ã«ãè¿œå ããŸãã
ã³ãŒãã衚瀺
body { color: #8f8f8f; font: 12px Tahoma, sans-serif; background: #f8f8f8 url(images/bg.png); border-top: 5px solid #7e7e7e; margin: 0; } img { border: 0; } p { margin: 20px 0; } .alignleft { float: left; } .alignright { float: right; } .aligncenter { display: block; margin-left: auto; margin-right: auto; } .input { background-color: #f3f3f3; border: 1px solid #e7e7e7; height: 30px; color: #b2b2b2; padding: 0 10px; vertical-align: top; } .button { color: #fff; background-color: #29c5e6; border: none; height: 32px; font-family: 'Oswald', sans-serif; } .image { border: 1px solid #fff; outline: 1px solid #c9c9c9; } figure img { display: block; } .wrapper { max-width: 960px; margin: auto; } header { padding: 20px 0; } .main-heading { background: transparent url(images/h1-bg.png); margin: 30px 0; padding-left: 20px; } .main-heading h1 { display: inline-block; color: #7e7e7e; font: 40px/40px 'Oswald', sans-serif; background: url(images/bg.png); margin: 0; padding: 0 10px; text-transform: uppercase; } aside { float: left; width: 250px; } aside + section { margin-left: 280px; padding-bottom: 50px; } footer { clear: both; background: #7e7e7e; color: #dbdbdb; font-size: 11px; }
çµæã¯æ¬¡ã®ããã«ãªããŸãã

ããŽ

ã¡ã€ã³ããŒãžã®ãã¬ãŒã ãå®æãããããããåãå§ããŸãã ããŽããå§ããŸãããã ããŽç»åãimages / logo.pngã«ä¿åããŸãã ããããŒãã³ãã¬ãŒãã®header.phpãã¡ã€ã«ã«ãããŽã®ããŒã¯ã¢ãããæ¿å ¥ããŸãã
<div class="wrapper"> <header> <a href="/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="Whitesquare logo"></a> </header>
æ€çŽ¢ãã©ãŒã

WordPressã䜿çšãããšãã³ãŒããããã¯ãåå¥ã®ãã¡ã€ã«ã«æè»ã«ä¿åããè€æ°ã®ç°ãªãå Žæã§äœ¿çšã§ããŸãã æ€çŽ¢ãã©ãŒã ã®äŸãèŠãŠã¿ãŸãããã
ããŒããã©ã«ããŒã§ãæ°ããsearchform.phpãã¡ã€ã«ãäœæããæ€çŽ¢ãã©ãŒã ã³ãŒãããã®ãã¡ã€ã«ã«ä¿åããŸãã
<form name="search" action="<?php echo home_url( '/' ) ?>" method="get" class="search-form"> <input type="text" value="<?php echo get_search_query() ?>" name="s" placeholder="<?php echo __('Search', 'whitesquare'); ?>" class="input"> <button type="submit" class="button"><?php echo __('GO', 'whitesquare'); ?></button> </form>
ãããŠãã¹ã¿ã€ã«ã·ãŒãã§ããã©ãŒã ã®ã¹ã¿ã€ã«ãèšè¿°ããŸãã
ã³ãŒãã衚瀺
.search-form { float: right; }
ããšã¯ãsearchform.phpãheader.phpã«å«ããã ãã§ãã
<header> ⊠<?php get_search_form(); ?> </header>
ããã²ãŒã·ã§ã³

ããšãã°ãwp_list_pagesé¢æ°ã䜿çšãããªã©ãããŸããŸãªæ¹æ³ã§ããŒãžã«ããã²ãŒã·ã§ã³ãè¿œå ã§ããŸããã管çããã«ã«è¿œå ããæ¹ãããçŸä»£çãªæ¹æ³ã«ãªããŸãã ããã©ã«ãã§ã¯ãã¡ãã¥ãŒã®è¿œå æ©èœã¯æå¹ã«ãªã£ãŠããŸããããããè¡ãã«ã¯ãããŒããã¡ã€ã«functions.phpã«æ¬¡ã®ã³ãŒããè¿œå ããŸãã
if (function_exists('add_theme_support')) { add_theme_support('menus'); }
ãã®åŸãã¡ãã¥ãŒãµãé ç®ã管çããã«ã®å€èŠ³ã¡ãã¥ãŒé ç®ã«è¡šç€ºãããŸããããã§ã[æ°ããã¡ãã¥ãŒã®äœæ]ãªã³ã¯ãã¯ãªãã¯ããããããã¡ãã¥ãŒãã¡ãã¥ãŒåãå ¥åããå·ŠåŽã®åããããŒãžãéžæãã[ã¡ãã¥ãŒã«è¿œå ]ãã¿ã³ã§ã¡ãã¥ãŒã«è¿œå ããŸãã
ã¡ãã¥ãŒãäœæãããã®ã§ããµã€ãã«è¡šç€ºããå¿ èŠããããŸãã ãããè¡ãã«ã¯ãheader.phpã®æåŸã«æ¬¡ã®ã³ãŒããè¿œå ããŸãã
<nav class="main-navigation"> <? wp_nav_menu(array('menu' => 'top-menu', 'menu_class' => 'top-menu')); ?> </nav>
wp_nav_menué¢æ°ã¯ããtop-menuããšããååãšcssã¯ã©ã¹ãtop-menuãã®ã¡ãã¥ãŒã衚瀺ããŸãã
ãã®åŸãã¡ãã¥ãŒã¯ãã§ã«ããŒãžã«è¡šç€ºãããŸãããã¹ã¿ã€ã«ã¯è¡šç€ºãããŸããã æ§åŒåããïŒ
ã³ãŒãã衚瀺
.main-navigation { background: #f3f3f3; border: 1px solid #e7e7e7; } .top-menu { margin: 0; padding: 0; } .top-menu li { display: inline-block; padding: 10px 30px; margin: 0; text-transform: uppercase; list-style-position: inside; font: 14px 'Oswald', sans-serif; } .top-menu li.current_page_item { background: #29c5e6; } .top-menu a { color: #b2b2b2; text-decoration: none; } .top-menu li.current_page_item a { color: #fff; }
ããã¿ãŒ

次ã«ããã³ãã¬ãŒãã®æãé£ããéšåã«é²ã¿ãŸãã ç»åãåãåããç»åãã©ã«ãã«ä¿åããŸããã
images / footer-logo.png-ããã¿ãŒããŽ
images / social.png-倧ããªã¢ã€ã³ã³ã®ã¹ãã©ã€ã
images / social-small.png-å°ããªã¢ã€ã³ã³ã®ã¹ãã©ã€ã
次ã«ãfooter.phpãã¡ã€ã«ã«ã¬ã€ã¢ãŠããäœæããŸãã
<footer> <div class="footer-content"> <div class="twitter"> <h3 class="footer-heading"><?php echo __('Twitter feed', 'whitesquare'); ?></h3> <time datetime="2012-10-23"><a href="#" class="twitter-time">23 oct</a></time> <p><?php echo __('In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et nulla. In eget mi dui, sit amet scelerisque nunc. Aenean aug', 'whitesquare'); ?></p> </div> <div class="sitemap"> <h3 class="footer-heading"><?php echo __('Sitemap', 'whitesquare'); ?></h3> <div class="column first"> <a href="/home/"><?php echo __('Home', 'whitesquare'); ?></a> <a href="/about/"><?php echo __('About', 'whitesquare'); ?></a> <a href="/services/"><?php echo __('Services', 'whitesquare'); ?></a> </div> <div class="column"> <a href="/partners/"><?php echo __('Partners', 'whitesquare'); ?></a> <a href="/customers/"><?php echo __('Support', 'whitesquare'); ?></a> <a href="/contact/"><?php echo __('Contact', 'whitesquare'); ?></a> </div> </div> <div class="social"> <h3 class="footer-heading"><?php echo __('Social networks', 'whitesquare'); ?></h3> <a href="http://twitter.com/" class="social-icon twitter-icon"></a> <a href="http://facebook.com/" class="social-icon facebook-icon"></a> <a href="http://plus.google.com/" class="social-icon google-plus-icon"></a> <a href="http://vimeo.com/" class="social-icon-small vimeo-icon"></a> <a href="http://youtube.com/" class="social-icon-small youtube-icon"></a> <a href="http://flickr.com/" class="social-icon-small flickr-icon"></a> <a href="http://instagram.com/" class="social-icon-small instagram-icon"></a> <a href="/rss/" class="social-icon-small rss-icon"></a> </div> <div class="footer-logo"> <a href="/"><img src="<?php bloginfo('template_url'); ?>/images/footer-logo.png" alt="Whitesquare logo"></a> <p><?php echo __('Copyright © 2012 Whitesquare. A <a href="http://pcklab.com">pcklab</a> creation', 'whitesquare'); ?></p> </div> </div> </footer>
ãããŠãstyle.cssã§ã¹ã¿ã€ã«ãèŠå®ããŸãã
ã³ãŒãã衚瀺
.footer-content { max-width: 960px; margin: auto; padding: 10px 0; height: 90px; } .footer-heading { font: 14px 'Oswald', sans-serif; color: #fff; border-bottom: 1px solid #919191; margin: 0 0 10px 0; text-transform: uppercase; } footer a { color: #dbdbdb; } footer p { margin: 5px 0; } .twitter-time { color: #b4aeae; } .twitter { float: left; width: 300px; } .twitter p { padding-right: 15px; } .sitemap { width: 150px; float: left; margin-left: 20px; padding-right: 15px; } .sitemap .column { display: inline-block; margin-left: 40px; } .sitemap .column.first { margin-left: 0; } .sitemap a { display: block; text-decoration: none; font-size: 12px; margin-bottom: 5px; } .sitemap a:hover { text-decoration: underline; } .social { float: left; margin-left: 20px; width: 130px; } .social-icon { width: 30px; height: 30px; background: url(images/social.png) no-repeat; display: inline-block; margin-right: 10px; } .social-icon-small { width: 16px; height: 16px; background: url(images/social-small.png) no-repeat; display: inline-block; margin: 5px 6px 0 0; } .twitter-icon { background-position: 0 0; } .facebook-icon { background-position: -30px 0; } .google-plus-icon { background-position: -60px 0; } .vimeo-icon { background-position: 0 0; } .youtube-icon { background-position: -16px 0; } .flickr-icon { background-position: -32px 0; } .instagram-icon { background-position: -48px 0; } .rss-icon { background-position: -64px 0; } .footer-logo { float: right; margin-top: 20px; font-size: 10px; text-align: right; }
ãã®çµæããµã€ãã®ã¡ã€ã³ããŒãžã¯æ¬¡ã®ããã«ãªããŸãã

ã¡ã€ã³ããŒãž
psdã¬ã€ã¢ãŠããèŠããšãã¡ã€ã³ããŒãžã®ã¬ã€ã¢ãŠããå éšã®ã¬ã€ã¢ãŠããšç°ãªãããšãããããŸãã ç¹ã«ãã¡ã€ã³ããŒãžã«ã¯ãµã€ãããŒãããŒãžã¿ã€ãã«ã¯ãããŸããã
WordPressã§ã¯ãããŒãžããšã«ç°ãªããã³ãã¬ãŒããèšå®ã§ããŸãã ãã®ãããªãã³ãã¬ãŒãã¯ãpage- {page name} .phpãã¡ã€ã«ã«ä¿åããå¿ èŠããããŸãã ãã³ãã¬ãŒããèŠã€ãããªãå Žåãããã©ã«ãã®ãã³ãã¬ãŒãpage.phpãæ¥ç¶ãããŸãã
ã¡ã€ã³ããŒãžã®å ŽåãããŒããã©ã«ããŒã«æ°ããfront-page.phpãã¡ã€ã«ãäœæããŸãã 次ã®ã³ãŒããè¿œå ããŸãã
<?php get_header(); ?> <section> <?php if (have_posts()): while (have_posts()): the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?> </section> <?php get_footer(); ?>
page.phpã³ãŒããšã®éãã¯ãããŒãžã¿ã€ãã«ããªãããšã ãã§ãã
次ã«è¡ãããšã¯ãWordPressããŒãã®äœæã®ç¯å²ãè¶ ããŠããŸãããpsdã¬ã€ã¢ãŠãããå šäœåãåäœæããã¡ã€ã³ããŒãžã«ã³ã³ãã³ããå ¥åããããšããŸãã ããŒãžã«ã¯ç®¡çããã«ã®ã³ã³ãã³ãã衚瀺ãããããããµã€ãææè ã¯ãã®ããã«ã«å ¥ããããŒãèªäœã®ã³ãŒããå€æŽããã«ããŒãžäžã®äœããå€æŽã§ããŸãã
ã¡ã€ã³ããŒãžã®ã³ã³ãã³ããè¿œå ããåã«ããã®ããŒãžã®ãã¹ãŠã®ç»åãåãåããã¡ãã¥ãŒã®[ã¡ãã£ã¢]-> [ã©ã€ãã©ãª]ããWordPressã©ã€ãã©ãªã«è¿œå ããå¿ èŠããããŸãã ãããã®ç»åã次ã®ããã«åŒã³åºããŸãããã
home-1.png
home-2.png
home-3.png
home-4.png
home-5.png
clients-1.png
clients-2.png
clients-3.png
clients-4.png
clients-5.png
clients-6.png
clients-7.png
次ã«ã管çããã«ã®ã¡ã€ã³ããŒãžã®ç·šéãã©ãŒã ã«ç§»åãã[ããŒãž]-> [ããŒã ]-> [ããŒãžã®ç·šé]ãéžæããããã¹ããã£ãŒã«ãã«ããŒãžã®ã³ã³ãã³ããå ¥åããŸãã
ã³ãŒãã衚瀺
<div class="slider"> <div class="content"> <div class="title">Fusce vitae nibn quis diam fermentum</div> <div class="subtitle">Etiam adipscing ultricies commodo.</div> </div> <ol class="links"> <li class="active">Lorem ipsum dolop</li> <li>Ultricies pellentesque</li> <li>Aliquam ipsum</li> <li>Nullam sed mauris ut</li> </ol> </div> <article class="teaser" style="width: 50%;"> <div class="heading"> <i class="bullet"></i> <h3 class="heading-text">About whitesquare</h3> </div> <figure class="image"> <img src="/wp-content/uploads/2014/05/home-1.png" alt="" width="135" height="135" /> </figure> In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et nulla. In eget mi dui, sit amet scelerisque nunc. Aenean augue arcu, convallis ac vulputate vitae, mollis non lectus. Donec hendrerit lacus ac massa ornare hendrerit sagittis lacus tempor. Vivamus et dui et neque accumsan varius et ut erat. Enean augue arcu, convallis ac ultrices. <p class="more"><a href="/about-us/">Read more</a></p> </article> <article class="teaser" style="width: 50%;"> <div class="heading"> <i class="bullet"></i> <h3 class="heading-text">A word from our ceo</h3> </div> <figure class="image"> <img src="/wp-content/uploads/2014/05/home-2.png" alt="" width="135" height="135" /> </figure> <i>In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et nulla. In eget mi dui, sit amet scelerisque nunc. Aenean augue arcu, convallis ac vulputate vitae, mollis non lectus. Donec hendrerit lacus ac massa ornare hendrerit sagittis lacus tempor. Vivamus et dui et neque accumsan varius et ut erat. Enean augue arcu, convallis ac ultrices.</i> <p class="more">Yane Naumoski, CEO</p> </article> <article class="teaser" style="width: 33%;"> <div class="heading"> <i class="bullet"></i> <h3 class="heading-text">Services</h3> </div> In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et nulla. In eget mi dui, sit amet scelerisque nunc. Aenean augue arcu, convallis ac vulputate vitae, mollis non lectus. Donec hendrerit lacus ac massa ornare hendrerit sagittis lacus tempor. Vivamus et dui et neque accumsan varius et ut erat. Enean augue arcu, convallis ac ultrices. <p class="more"><a href="/services/">Read more</a></p> </article> <article class="teaser" style="width: 33%;"> <div class="heading"> <i class="bullet"></i> <h3 class="heading-text">Our teams</h3> </div> <div class="small-block"> <figure class="image"> <img src="/wp-content/uploads/2014/05/home-3.png" alt="" width="35" height="35" /> </figure> <h4 class="teaser-small-heading">Lorem ipsum</h4> <p class="teaser-small-paragraph">In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et</p> </div> <div class="small-block"> <figure class="image"> <img src="/wp-content/uploads/2014/05/home-4.png" alt="" width="35" height="35" /> </figure> <h4 class="teaser-small-heading">Lorem ipsum</h4> <p class="teaser-small-paragraph">In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et</p> </div> <div class="small-block"> <figure class="image"> <img src="/wp-content/uploads/2014/05/home-5.png" alt="" width="35" height="35" /> </figure> <h4 class="teaser-small-heading">Lorem ipsum</h4> <p class="teaser-small-paragraph">In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et</p> </div> </article> <article class="teaser" style="width: 33%;"> <div class="heading"> <i class="bullet"></i> <h3 class="heading-text">24/7/365 Support</h3> </div> <p class="teaser-small-paragraph"> In ultricies pellentesque massa a porta. Aliquam ipsum enim, hendrerit ut porta nec, ullamcorper et nulla. In eget mi dui, sit amet scelerisque nunc. Aenean augue arcu, convallis ac vulputate vitae, mollis non lectus. Donec hendrerit lacus ac massa ornare hendrerit sagittis lacus tempor. Vivamus et dui et neque accumsan varius et ut erat. Enean augue arcu, convallis ac ultrices. </p> <p class="teaser-small-paragraph more"><a href="/contact/">Read more</a></p> </article> <article class="teaser clients" style="width: 100%;"> <div class="heading"> <i class="bullet"></i> <h3 class="heading-text">Our clients</h3> </div> <img src="/wp-content/uploads/2014/05/clients-1.png" alt="" width="61" height="83" /> <img src="/wp-content/uploads/2014/05/clients-2.png" alt="" width="74" height="83" /> <img src="/wp-content/uploads/2014/05/clients-3.png" alt="" width="163" height="83" /> <img src="/wp-content/uploads/2014/05/clients-4.png" alt="" width="72" height="83" /> <img src="/wp-content/uploads/2014/05/clients-5.png" alt="" width="104" height="83" /> <img src="/wp-content/uploads/2014/05/clients-6.png" alt="" width="78" height="83" /> <img src="/wp-content/uploads/2014/05/clients-7.png" alt="" width="87" height="83" /> </article>
åçãžã®ãã¹ãä¿®æ£ããããšãå¿ããªãã§ãã ããã è¿œå æ¥ã«ãã£ãŠç°ãªããŸãã
ä»ããã®ã³ãŒããå®ååããããšãæ®ã£ãŠããŸãã
ã³ãŒãã衚瀺
.slider { margin-top: 30px; font-family: 'Oswald', sans-serif; font-weight: 300; text-transform: uppercase; } .slider .content { height: 220px; padding: 30px 40px; background: #e2e2e2; } .slider .title { color: #5a5a5a; font-size: 42px; } .slider .subtitle { color: #acacac; font-size: 20px; } .slider .links { display: block; margin: 0; padding: 10px; background: #f3f3f3; border-bottom: 1px solid #e7e7e7; counter-reset: list 0; color: #8f8f8f; } .slider .links li { display: inline-block; font-size: 18px; line-height: 23px; margin-right: 55px; cursor: pointer; } .slider .links li.active { color: #29c5e6; } .slider .links li:before { display: inline-block; counter-increment: list; content: counter(list) " "; background: #8f8f8f; color: #fff; width: 23px; text-align: center; margin-right: 10px; font-size: 16px; cursor: pointer; } .slider .links li.active:before { background: #29c5e6; } .teaser { display: inline-block; padding: 0 10px; box-sizing: border-box; -moz-box-sizing: border-box; vertical-align: top; } .teaser .heading { background: transparent url(images/h1-bg.png); margin: 40px 0 20px; height: 16px; } .teaser .bullet { display: inline-block; width: 16px; height: 16px; background: #29c5e6; vertical-align: top; } .teaser .heading-text { display: inline-block; text-transform: uppercase; font: normal 14px/16px 'Oswald', sans-serif; margin: 0; padding: 0 10px; background: url(images/bg.png); } .teaser .image { float: left; margin-right: 20px; } .teaser .small-block { margin-bottom: 10px; } .teaser .small-block .image { margin-right: 10px; } .teaser .more, .teaser .more a { color: #525252; margin-bottom: 0; } .teaser-small-heading { display: block; color: #525252; margin: 0; font-weight: normal; font-size: 11px; text-transform: uppercase; } .teaser-small-paragraph { margin: 4px 0; font-size: 11px; } .clients img { display: inline-block; margin-right: 30px; }
ããã§ããŒãžãèŠããšããããã¯ããããŒãåé¢ãããŠããããšãããããŸãã ããã¯ãWordPressãšãã£ã¿ãŒãæ¹è¡ã§ã³ãŒãã«ç©ºçœã®æ®µèœãè¿œå ããããã§ãã ãã®åé¡ã解決ããã«ã¯ãããŒããã©ã«ããŒã«functions.phpãã¡ã€ã«ãäœæãããã®äžã«ã³ãŒããé 眮ããŸãã
<?php remove_filter('the_content', 'wpautop');
ãã®åŸãã¡ã€ã³ããŒãžãæ£ãã衚瀺ãããŸãã
ãµã€ãããŒ
ã¡ã€ã³ããŒãžã®æºåãã§ããã®ã§ãå éšããŒãžãã³ãã¬ãŒãã«æ»ã£ãŠãµã€ãããŒãè¿œå ããŸãããã

ãããè¡ãã«ã¯ãsidebar.phpãã¡ã€ã«ãäœæãã次ã®ã³ãŒããè¿œå ããŸãã
<aside> <nav class="aside-navigation"> <? wp_nav_menu(array('menu' => 'aside-menu', 'menu_class' => 'aside-menu')); ?> </nav> <h2 class="sidebar-heading"><?php echo __('Our offices', 'whitesquare'); ?></h2> <div class="map"> <img src="<?php bloginfo('template_url'); ?>/images/sample.png" width="230" height="180" alt="<?php echo __('Our offices', 'whitesquare'); ?>"> </div> </aside>
ããã§ãã¬ã€ã¢ãŠãã¯2ã€ã®éšåã§æ§æãããŠããŸãããµãã¡ãã¥ãŒã®ããã²ãŒã·ã§ã³ãšãªãã£ã¹ããããããã¯ã®è¡šç€ºã§ãã å®å šãæãããããµãã¡ãã¥ãŒãšããŠããµã€ãäžã®ãã¹ãŠã®æçš¿ã®ãªã¹ãã衚瀺ããããšããå§ãããŸãã ãµãã¡ãã¥ãŒã¯ãã¡ãã¥ãŒãäœæããã®ãšåãæ¹æ³ã§äœæãããŸãã å€èŠ³->ã¡ãã¥ãŒã®ç®¡çã»ã¯ã·ã§ã³ã§ãµãã¡ãã¥ãŒãäœæããå Žåãaside-menuãšããæ°ããã¡ãã¥ãŒãäœæããŸãã æçš¿ãè¿œå ããã«ã¯ã[ç»é¢]ãªãã·ã§ã³ã®äžéšã«ãããã¯ãªãã¯ãã[ç»é¢ã«è¡šç€ºïŒæçš¿]ãã§ãã¯ããã¯ã¹ããªã³ã«ããŸãã ããããããã¯ã¯ãç¹å¥ãªåé¡ãåŒãèµ·ãããŸããã
ãµã€ãããŒãããã¯ã®æºåãã§ããããpage.phpãã¡ã€ã«å ã®ãã¹ãŠã®ãµãããŒãžã«å¯ŸããŠãµã€ãããŒãããã¯ãæå¹ã«ããå¿ èŠããããŸãã
<div class="main-heading"> ⊠</div> <?php get_sidebar(); ?> <section> âŠ
次ã«ãã¬ã€ã¢ãŠãã®ã¹ã¿ã€ã«ãè¿œå ããå¿ èŠããããŸãã
ã³ãŒãã衚瀺
.aside-navigation { background: #f3f3f3; border: 1px solid #e7e7e7; } .aside-menu { margin: 0; padding: 0; text-transform: uppercase; } .aside-menu li { font-weight: 300; list-style: square inside; border-top: 1px solid #e7e7e7; font: 14px 'Oswald', sans-serif; padding: 10px; font-weight: 300; } .aside-menu li:first-child { border: none; } .aside-menu li.current-menu-item, .aside-menu li.current-menu-item a { color: #29c5e6; } .aside-menu a { color: #8f8f8f; text-decoration: none; } .sidebar-heading { background: #29c5e6; font: 14px 'Oswald', sans-serif; color: #fff; padding: 10px; margin: 30px 0 0 0; text-transform: uppercase; } .map { background: #f3f3f3; border: 1px solid #e7e7e7; padding: 10px; margin: 0 0 30px 0; }
çµè«ãšããŠãããã°ã«ããã€ãã®æçš¿ãè¿œå ããŸãã ããã¯ã管çããã«ã®[æçš¿]-> [æ°èŠè¿œå ]ã¿ãã§è¡ããŸãã psdã¬ã€ã¢ãŠããšãŸã£ããåãååãè¿œå ããŸããã

ç§éã«ã€ããŠã®ããŒãž

å éšããŒãžã®ãã³ãã¬ãŒããæºåã§ããã®ã§ãAbout usããŒãžã®å 容ãèšå ¥ããŸãããã ã¡ã€ã³ããŒãžã«èšå ¥ããã®ãšåãã¹ããŒã ã«åŸã£ãŠãç»åãæºåããã¡ãã£ã¢ã©ã€ãã©ãªã«è¿œå ããŸãã 次ã®ããã«ç»åã«ååãä»ããŸãã
about-1.png
about-2.png
team-Nobriga.jpg
team-Pittsley.jpg
team-Rousselle.jpg
team-Shoff.jpg
team-Simser.jpg
team-Tondrea.jpg
team-Venuti.jpg
team-Wollman.jpg
次ã«ã管çããã«ã®ç·šéããŒãžã«ç§»åããŠãã³ãŒããè¿œå ããŸãã
ã³ãŒãã衚瀺
<blockquote class="main-blockquote"> <p> âQUISQUE IN ENIM VELIT, AT DIGNISSIM EST. NULLA UL CORPER, DOLOR AC PELLENTESQUE PLACERAT, JUSTO TELLUS GRAVIDA ERAT, VEL PORTTITOR LIBERO ERAT.â </p> <cite>John Doe, Lorem Ipsum</cite> </blockquote> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean non neque ac sem accumsan rhoncus ut ut turpis. In hac habitasse platea dictumst. Proin eget nisi erat, et feugiat arcu. Duis semper porttitor lectus, ac pharetra erat imperdiet nec. Morbi interdum felis nulla. Aenean eros orci, pellentesque sed egestas vitae, auctor aliquam nisi. Nulla nec libero eget sem rutrum iaculis. Quisque in enim velit, at dignissim est. Nulla ullamcorper, dolor ac pellentesque placerat, justo tellus gravida erat, vel porttitor libero erat condimentum metus. Donec sodales aliquam orci id suscipit. Proin sed risus sit amet massa ultrices laoreet quis a erat. Aliquam et metus id erat vulputate egestas. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. </p> <p> Donec vel nisl nibh. Aenean quam tortor, tempus sit amet mattis dapibus, egestas tempor dui. Duis vestibulum imperdiet risus pretium pretium. Nunc vitae porta ligula. Vestibulum sit amet nulla quam. Aenean lacinia, ante vitae sodales sagittis, leo felis bibendum neque, mattis sagittis neque urna vel magna. Sed at sem vitae lorem blandit feugiat. </p> <p> Donec vel orci purus, ut ornare orci. Aenean rutrum pellentesque quam. Quisque gravida adipiscing augue, eget commodo augue egestas varius. Integer volutpat, tellus porta tincidunt sodales, lacus est tempus odio, fringilla blandit tortor lectus ut sem. Pellentesque nec sem lacus, sit amet consequat neque. Etiam varius urna quis arcu cursus in consectetur dui tincidunt. Quisque arcu orci, lacinia eget pretium vel, iaculis pellentesque nibh. Etiam cursus lacus eget neque viverra vestibulum. Aliquam erat volutpat. Duis pulvinar tellus ut urna facilisis mollis. Maecenas ac pharetra dui. Pellentesque neque ante, luctus eget congue eget, rhoncus vel mauris. Duis nisi magna, aliquet a convallis non, venenatis at nisl. Nunc at quam eu magna malesuada dignissim. Duis bibendum iaculis felis, eu venenatis risus sodales non. In ligula mi, faucibus eu tristique sed, vulputate rutrum dolor. </p> <img class="image" src="/wp-content/uploads/2014/05/about-1.png" alt="about-1" width="320" height="175" /> <img class="image alignright" src="/wp-content/uploads/2014/05/about-2.png" alt="about-2" width="320" height="175" /> <h2 class="content-heading">Our team</h2> <div class="team-row"> <figure> <img class="image" src="/wp-content/uploads/2014/05/team-Doe.jpg" alt="" width="96" height="96" /> <figcaption> John Doe<span class="occupation">ceo</span> </figcaption> </figure> <figure> <img class="image" src="/wp-content/uploads/2014/05/team-Pittsley.jpg" alt="" width="96" height="96" /> <figcaption> Saundra Pittsley<span class="occupation">team leader</span> </figcaption> </figure> <figure> <img class="image" src="/wp-content/uploads/2014/05/team-Pittsley.jpg" alt="" width="96" height="96" /> <figcaption> Julio Simser<span class="occupation">senior developer</span> </figcaption> </figure> <figure> <img class="image" src="/wp-content/uploads/2014/05/team-Simser.jpg" alt="" width="96" height="96" /> <figcaption> Margery Venuti<span class="occupation">senior developer</span> </figcaption> </figure> <figure> <img class="image" src="/wp-content/uploads/2014/05/team-Venuti.jpg" alt="" width="96" height="96" /> <figcaption> Fernando Tondrea<span class="occupation">developer</span> </figcaption> </figure> </div> <div class="team-row"> <figure> <img class="image" src="/wp-content/uploads/2014/05/team-Tondrea.jpg" alt="" width="96" height="96" /> <figcaption> Ericka Nobriga<span class="occupation">art director</span> </figcaption> </figure> <figure> <img class="image" src="/wp-content/uploads/2014/05/team-Nobriga.jpg" alt="" width="96" height="96" /> <figcaption> Cody Rousselle<span class="occupation">senior ui designer</span> </figcaption> </figure> <figure> <img class="image" src="/wp-content/uploads/2014/05/team-Rousselle.jpg" alt="" width="96" height="96" /> <figcaption> Erik Wollman<span class="occupation">senior ui designer</span> </figcaption> </figure> <figure> <img class="image" src="/wp-content/uploads/2014/05/team-Wollman.jpg" alt="" width="96" height="96" /> <figcaption> Dona Shoff<span class="occupation">ux designer</span> </figcaption> </figure> <figure> <img class="image" src="/wp-content/uploads/2014/05/team-Shoff.jpg" alt="" width="96" height="96" /> <figcaption> Darryl Brunton<span class="occupation">ui designer</span> </figcaption> </figure> </div>
ãããŠstyle.cssã®ã¹ã¿ã€ã«ïŒ
ã³ãŒãã衚瀺
.main-blockquote { margin: 0; background: #29c5e6; padding: 10px 20px; font-family: 'Oswald', sans-serif; font-weight: 300; } .main-blockquote p { color: #fff; font-style: italic; font-size: 33px; margin: 0; } .main-blockquote cite { display: block; font-size: 20px; font-style: normal; color: #1d8ea6; margin: 0; text-align: right; } .content-heading { background: #29c5e6; font: 30px 'Oswald', sans-serif; font-weight: 300; color: #fff; padding: 0 10px; margin: 30px 0 0 0; text-transform: uppercase; } .team-row figure { display: inline-block; margin: 20px 0 0; font-family: 'Oswald', sans-serif; font-weight: 300; } .team-row figure + figure { margin-left: 43px; } .team-row figcaption { font-size: 16px; font-weight: 300; margin-top: 5px; } .team-row .occupation { display: block; font-size: 14px; color: #29c5e6; }
æçš¿ãã³ãã¬ãŒã
åã®æé ã®åŸãæçš¿ã®ããããŒãžãé€ãããã¹ãŠã®ããŒãžã¯ãã§ã«ãµã€ãã§å©çšå¯èœã§ããsingle.phpãã³ãã¬ãŒãã¯ãåäžã®æçš¿ã衚瀺ããŸãã次ã®å 容ã§äœæããŸãã
<?php get_header();?> <div class="main-heading"> <h1><?php the_title(); ?></h1> </div> <?php get_sidebar();?> <section> <?php while (have_posts()): the_post();?> <?php the_content();?> <?php if ( comments_open() || get_comments_number() ) { comments_template(); } ?> <?php endwhile; ?> </section> <?php get_footer(); ?>
ãã®ãã³ãã¬ãŒãã¯ä»¥åã®ãã³ãã¬ãŒããšäŒŒãŠããŸãããããã§ã¯æåã«æçš¿ã®ã³ã³ãã³ãã衚瀺ãã次ã«ã³ã¡ã³ãã衚瀺ããç¹ã®ã¿ãç°ãªããŸãã
æ€çŽ¢ããŒãž

æåã«ãããããŒãã³ãã¬ãŒããäœæãããšãã«æ€çŽ¢ãè¿œå ããŸããããæ€çŽ¢çµæã衚瀺ããããŒãžã¯ãŸã ãããŸãããããŒããã©ã«ããŒã«search.phpãã¡ã€ã«ãäœæããã³ã³ãã³ããè¿œå ããŸãã
<?php get_header(); ?> <div class="main-heading"> <h1>Search</h1> </div> <?php get_sidebar(); ?> <section> <h2 class="content-heading"><?php printf( __('Search Results for: %s', 'default'), get_search_query() ); ?></h2> <?php if (have_posts()): while (have_posts()): the_post(); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <p><?php the_excerpt(); ?></p> <?php endwhile; else:?> <p><?php echo __('Sorry, no results found', 'whitesquare'); ?></p> <?php endif; ?> </section> <?php get_footer(); ?>
ããã¯ãæ€çŽ¢ããã¹ããå«ãèŠåºãã衚瀺ããæ€çŽ¢çµæã®ãªã¹ãã衚瀺ãããšããç¹ã§ä»ã®ãã³ãã¬ãŒããšã¯ç°ãªããŸãã
ã¢ãŒã«ã€ãããŒãž
WordPressã«ã¯ãåäžã®æçš¿ã«å ããŠãæçš¿ã®ãªã¹ãã衚瀺ããããŒãžããããŸããã«ããŽãªãæ¥ä»ãèè ããŸãã¯ããŒã¯ãŒãã§ãœãŒãã§ããŸããã¬ã€ã¢ãŠãã«ã¯ãã®ãããªæ©èœã¯ãããŸããããããŸããŸãªã³ã³ãã³ãã§äœ¿çšã§ãããã³ãã¬ãŒããäœæããŠãããããè¿œå ããå¿ èŠããããŸãããããã®ãªã¹ãã«ã¯ããããç¬èªã®ãã³ãã¬ãŒãããããŸãããèŠã€ãããªãå ŽåãWordPressã¯å ±éã®archive.phpãã¡ã€ã«ãèŠã€ããããšããŸããããã䜿çšããŠäœæããŸãããã®å 容ã¯éåžžã®ããŒãžã®å 容ãšå€ãããªããããpage.phpãarchive.phpã«ã³ããŒããã ãã§ãã
404
è¿œå ããæåŸã®ãã³ãã¬ãŒãã¯ãWordPressãèŠæ±ãããããŒãžãèŠã€ããããªãã£ããšãã®404ããŒãžã®ãã³ãã¬ãŒãã§ããpage.phpãšãŸã£ããåãã§ãããæçš¿ã衚瀺ãã代ããã«ããšã©ãŒã¡ãã»ãŒãžãæžã蟌ãŸããŸãã
<?php get_header(); ?> <div class="main-heading"> <h1><?php the_title(); ?></h1> </div> <?php get_sidebar(); ?> <section> <p><?php echo __('It looks like nothing was found at this location.', 'whitesquare'); ?></p> </section> <?php get_footer(); ?>
ãããã«
ããã§ãWordPressãã³ãã¬ãŒãã®äœæãå®äºããŸãããå®æãããããžã§ã¯ãã¯ãã¡ãããããŠã³ããŒãã§ããŸãã
以åã®èšäºãžã®ãªã³ã¯ïŒ
WebããŒãžã®äœææ¹æ³ã ããŒã1
WebããŒãžã®äœææ¹æ³ãããŒã2-
æå°ã®ããŒãã¹ãã©ããã¬ã€ã¢ãŠããBEMïŒxnimïŒã«ããããŒãžã¬ã€ã¢ãŠãïŒ
ããŒãã¹ãã©ããã¬ã€ã¢ãŠãïŒlexnekrïŒã«åºã¥ããŠ1C-Bitrixãã³ãã¬ãŒããäœæããŸãã
æŽæ°ïŒ
ãã®èšäºã¯ã解説è ã®åžæã«å¿ããŠå€§å¹ ã«æŽæ°ãããŸããã
- ã¡ãã¥ãŒã®äœæã¯wp_list_pagesã§ã¯ãªãwp_nav_menuã䜿çšããŠèª¬æãããããã«ãªããŸããã
- ãã³ãã¬ãŒãã§äœ¿çšããããã¹ãŠã®ãã¬ãŒãºã¯ãããŒã«ã©ã€ãºé¢æ°__ïŒ ''ïŒãä»ããŠæ¿å ¥ãããŸã
- ã¹ã¿ã€ã«ãšã¹ã¯ãªããã¯header.phpãã¡ã€ã«ã§ã¯ãªããfunctions.phpã®ç¹å¥ãªé¢æ°ãä»ããŠæ¥ç¶ãããŸã
- page-home.php front-page.php