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

时间:2018-03-15 07:28:28

标签: php css wordpress

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

我想显示:内联;在h1中可以做到这一点,但事实并非如此。 任何答案如何工作,所以他们不提出换行?

我的SCSS现在:

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

1 个答案:

答案 0 :(得分:0)

我明白了。

无需对SCSS文件做任何事情,只需简单地说:

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