私はWordpressのイベントテーマを使用しています。単一のイベントページでは、本体のコピーの上にある小さなサイドバーのコンテンツを小さい/ポートレートのビューポートに表示したいと思います。問題のページには、次のとおりです。http://staging.foxandmonkey.co.uk/event/brunch-808-uk-garage/列の表示順序を変更するにはモバイル/タブレットビューCSS Wordpress?
ここでのテーマから引っ張っているPHPされる:ページが私はこの部分を想定しています何のサイドバーを持っていない
global $tp_sidebar, $tp_content_class, $tp_title;
if ($tp_sidebar) {
$right_class = 'col-sm-7 col-sm-push-5';
$left_class = 'col-sm-5 col-sm-pull-7';
}
else {
$right_class = 'col-sm-8 col-sm-push-4';
$left_class = 'col-sm-4 col-sm-pull-8';
}
?>
<?php tribe_get_template_part('custom/wrapper-start'); ?>
<div id="tribe-events-content" class="tribe-events-single vevent hentry">
<!-- Notices -->
<?php
if (function_exists('tribe_the_notices')) {
tribe_the_notices();
}
elseif (function_exists('tribe_events_the_notices')) {
tribe_events_the_notices();
}
?>
<div class="events-single-right <?php echo esc_attr($right_class); ?>">
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if (!$tp_title) : ?>
<h2 class="entry-title">
<?php the_title() ?>
</h2>
<?php endif; ?>
<!-- Event featured image, but exclude link -->
<?php if(has_post_thumbnail()) : ?>
<div class="tribe-events-event-image">
<?php the_post_thumbnail('large'); ?>
</div>
<?php endif; ?>
<!-- Event content -->
<?php do_action('tribe_events_single_event_before_the_content') ?>
<div class="tribe-events-single-event-description tribe-events- content entry-content description">
<?php the_content(); ?>
</div>
<!-- .tribe-events-single-event-description -->
<?php do_action('tribe_events_single_event_after_the_content') ?>
</div> <!-- #post-x -->
<?php endwhile; ?>
</div>
<div class="events-single-left <?php echo esc_attr($left_class); ?>">
<?php tribe_get_template_part('custom/cta'); ?>
<!-- Event meta -->
<?php do_action('tribe_events_single_event_before_the_meta') ?>
<?php do_action('tribe_events_single_event_meta_primary_section_start'); ?>
<?php tribe_get_template_part('modules/meta/details'); ?>
<?php do_action('tribe_events_single_event_meta_primary_section_end'); ?>
<?php tribe_get_template_part('modules/meta/venue'); ?>
<?php tribe_get_template_part('modules/meta/map'); ?>
<?php tribe_get_template_part('custom/schedule'); ?>
<?php tribe_get_template_part('custom/custom'); ?>
<?php
// Include organizer meta if appropriate
if (tribe_has_organizer()) {
tribe_get_template_part('modules/meta/organizer');
}
?>
</div>
は、左と右の内容を定義しているものです。
$right_class = 'col-sm-8 col-sm-push-4';
$left_class = 'col-sm-4 col-sm-pull-8';
私はCSSとブートストラップにはまったく新しいので、携帯電話やポートレートのタブレットビューでは、右の前に左の掛け金を表示するカスタムCSSを設定できますか?現在テーマファイルにあるCSSは次のとおりです。
#tribe-events-content.tribe-events-single {
background: white;
margin: 0 0 30px;
padding: 50px;
}
#tribe-events-content.tribe-events-single .events-single-left {
padding: 0;
margin-bottom: 25px;
}
@media (max-width: 767px) {
#tribe-events-content.tribe-events-single .events-single-left {
min-height: 200px !important;
}
}
@media (min-width: 768px) {
#tribe-events-content.tribe-events-single .events-single-left {
border-right: 1px solid #3ec9ce;
}
}
#tribe-events-content.tribe-events-single .events-single-right {
padding: 0;
}
@media (max-width: 767px) {
#tribe-events-content.tribe-events-single .events-single-right {
min-height: 200px !important;
}
}
アドバイスありがとうございました!
ブリリアントは、ブートストラップがどのようにカラムオーダーを達成するかについての完全で非常に明確な説明をしました! –