如何在wordpress中为p标签提供一个类

时间:2017-10-02 08:27:40

标签: php wordpress

地狱我想给p标签一个特定的类名,但我找不到怎么做。我想给p标签一个类,因为我想用css来设置它。

invalidate your cache and restart

/ *这里我已经制作了一些p标签,但它会生成一个额外的p标签和我        想给那个p标签一个类来在css中设置它的样式      /   / 在这里我已经制作了一些p标签,但它会生成一个额外的p标签和我        想给那个p标签一个类来在css中设置它的样式      /   / 在这里我已经制作了一些p标签,但它会生成一个额外的p标签和我        想给那个p标签一个类来在css中设置它的样式      /   / 在这里我已经制作了一些p标签,但它会生成一个额外的p标签和我        想给那个p标签一个类来在css中设置它的样式

<?php
/* this plugin makes advanced custom fields*/

/**
 * Voeg de parent thema's stijl toe.
 */
ob_start();

function ultra_child_enqueue_parent_style() {
    wp_enqueue_style( 'ultra-parent-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'ultra_child_enqueue_parent_style', 8 );

function ultra_child_enqueue_scripts() {
    //Plaats hier de javascript bestanden.
}
add_action( 'wp_enqueue_scripts', 'ultra_child_enqueue_scripts', 8 );

/**
 * Plaats hier overige code in functions
 */
/* here I already make some p tags, but it generates an extra p tag and I 
   want to give that p tag an class to style it in the css 
*/

1 个答案:

答案 0 :(得分:0)

您是否尝试将该类添加到主题中的HTML?