[Support request] Add stylesheet

Home Forums Support [Support request] Add stylesheet

Home Forums Support Add stylesheet

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1608884
    cpalo

    Hello
    I will want to get my SimpleCss as a base for other sites.
    So I thought about copying the content into a custom.css stylesheet.
    And in the other sites, I thought I would call it by
    wp_enqueue_style (custom.css)
    is it correct?

    #1608904
    Elvin
    Staff
    Customer Support

    Hi,

    Yes wp_enqueue_style() is the correct function but you’ll have to point the command to the right file path.

    You’ll have to upload the file custom.css to your child theme’s assets/css folder and copy its path which you’ll have to add within the wp_enqueue_style().

    Read more about the command here:
    https://developer.wordpress.org/reference/functions/wp_enqueue_style/

    A wise man once said:
    "Have you cleared your cache?"

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.