[Resolved] Registering the new CSS File

Home Forums Support [Resolved] Registering the new CSS File

Home Forums Support Registering the new CSS File

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1175036
    Marcel

    Hello,

    1. Should I register a new CSS file before enqueuing it?
    I would like to use it on a custom ACF block.

    2. The new CSS stylesheet will overwrite the default CSS style (for that ACF block only)?

    3. Is it a good idea to dequeue the default CSS style for the page/ post where the ACF block will be placed?

    Your thoughts, please!

    Thank you!

    Marcel

    #1175486
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    There’s no need to register a file if you’re going to enqueue it right away – enqueuing registers it for you.

    It won’t replace an existing file automatically, so you would need to dequeue the other file manually if it’s no longer necessary.

    #1175913
    Marcel

    Thank you, Tom!

    #1176626
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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