How to use wp_enqueu_style?

Asked

Viewed 285 times

1

How do I get the contact page.php to use the contact.css file using the wp_enqueue_style function in Wordpress?

function terradecultivo_scripts() { 
if (contato.php) {  
    wp_enqueue_style('terra-style', get_stylesheet_uri() . '/contato.css' );
    }
}
add_action( 'wp_enqueue_style', 'terra-style' );

This code I put in Function.php

1 answer

3


Browser other questions tagged

You are not signed in. Login or sign up in order to post.