如何将边栏添加到存档页面

时间:2019-04-27 09:22:12

标签: wordpress archive sidebar

我想通过代码向我的存档页面添加侧边栏。以下代码已添加到存档模板中。补充工具栏已成功添加。但是,侧边栏会逐条重复。

请帮助我检查以下代码。

<div class="row max_width">
        <div class="small-12 large-8 columns">
    <?php if ( has_post_thumbnail() ) { ?>
        <figure class="post-gallery parallax">
            <div class="parallax_bg"
                        data-top-bottom="transform: translate3d(0px, 20%, 0px);"
                        data-bottom-top="transform: translate3d(0px, -20%, 0px);">
                <?php the_post_thumbnail('notio-single-3x'); ?>
            </div>
        </figure>
    <?php } ?>
            <header class="post-title">
                <?php get_template_part( 'inc/templates/postbits/post-meta' ); ?>
                <h3 itemprop="headline"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
            </header>
            <div class="post-content">
                <?php the_excerpt(); ?>
                <a href="<?php the_permalink(); ?>" class="more-link"><?php esc_html_e( 'Read More', 'notio' ); ?></a>
            </div>
    <?php do_action( 'thb_PostMeta' ); ?>
        </div>
    <div class="small-12 large-3 columns sidebar">
                  <?php if ( is_active_sidebar( 'custom-side-bar' ) ) : ?>
                  <?php dynamic_sidebar( 'custom-side-bar' ); ?>
                  <?php endif; ?>
              </div>
    </div>

1 个答案:

答案 0 :(得分:0)

请尝试以下操作:

continuousCollisionDetectionThreshold