(JointsWPと財団6.2.1を使用したカスタムWordPressのテーマ)財団フレームワーク - 次のページ(<a href="http://indianashrm.wpengine.com/chapters/" rel="nofollow noreferrer">http://indianashrm.wpengine.com/chapters/</a>)での表
の問題は、私は、データの2つのテーブルを持っており、より小さなデバイスとクラスの上の積み重ねでもありません。アンストライプされていても動作しません。 .hoverクラスは動作しています。
私は最初のテーブルのコードです(データ用にカスタムポストタイプを使用しています)。テーブルがスタッキングされず、ストライプが削除されない理由は何ですか?
<?php
$args = array (
'post_type' => 'shrm_local_chapter',
'posts_per_page' => -1,
'post_status' => 'publish',
'order' => 'ASC',
'orderby' => 'chapter_location'
);
$loop = new WP_Query($args);
?>
<h2>Local Chapters</h2>
<p>Scroll down to obtain contact information for your nearest local Indiana SHRM Chapter. Information on how to join that chapter can be found on their local web page.</p>
<table class="stacked unstriped hover">
<thead>
<tr>
<th width="50%">Name</th>
<th width="50%">Location</th>
</tr>
</thead>
<tbody>
<?php if ($loop->have_posts()) : while ($loop->have_posts()) : $loop->the_post();
$shrm_location = get_field("chapter_location");
$shrm_url = get_field("chapter_url");
$shrm_name = get_the_title();
echo '<tr>';
echo '<td><a href="'.$shrm_url.'">'.$shrm_name.'</a></td>';
echo '<td>'.$shrm_location.'</td>';
echo '</tr>';
endwhile; endif; wp_reset_postdata(); ?>
</tbody>
</table>
クラップを、私は...スタックのための間違ったクラス名を持っていました! @#$%^& – Brett
最新バージョンに更新しましたストライプの問題を修正しました。 JointsWPのインストールに含まれるバージョンは6.2.1を示しますが、ストライプされていないクラスはファイルにありません。それがどうして本当にわからないのか、クラスの検索をしなかったのは本当にわかりません...私はそれを当然と考えました。ステップアップしていただきありがとうございます。 – Brett