如何在没有换行符的情况下添加这些多个apply_filters(内容、值)


<div class="oneColumnHeader">
    <h1>
        <strong><?php echo apply_filters('the_content', $header1) ?></strong>
        <?php echo apply_filters('the_content', $text1) ?>
    </h1>
</div>

我以为 display:inline; 在 h1 中可以解决问题,但它没有。关于这是如何工作的答案,所以他们不会出来换行符?

我现在的 SCSS:

.oneColumnHeader {
    text-align: center;
    margin-bottom: 10px;
    h1 {
        font-weight: 500;
    }
    strong {
        color: $orange-color;
    }
}

我明白了。

不必对 SCSS 文件执行任何操作,只需

<strong><?php echo apply_filters('the_content', $header1."&nbsp;</strong>".$text1) ?>

最新更新