Created
July 27, 2018 02:16
-
-
Save mhige/ba3dc3bb8082a39b21f904a53833cc32 to your computer and use it in GitHub Desktop.
Wordpressテーマだと、たとえばこんな感じの構造になる。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="content"> | |
<div class="container"> | |
<!-- コンテンツ部分を丸ごと読み込む場合 --> | |
<div id="barba-wrapper"><!-- 追加 --> | |
<div class="barba-container"><!-- 追加 --> | |
<div class="main"> | |
<!-- メインカラムのコンテンツを読み込んでいる。読み込むファイル名は適当です --> | |
<?php get_template_part('nav'); ?> | |
<?php get_template_part('list'); ?> | |
<?php get_template_part('entry'); ?> | |
</div> | |
<?php get_sidebar(); ?><!-- これはサイドバー --> | |
</div><!-- 追加 --> | |
</div><!-- 追加 --> | |
</div> | |
</div> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment