[Support request] PrismJS with WordPress & GeneratePress

Home Forums Support PrismJS with WordPress & GeneratePress

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1154684
    Scott

    I wanted to add PrismJS to WordPress for syntax highlighting as shown here.

    My only question is, should I use the wp_enqueue_style and wp_enqueue_script to add the css and js files or should I just use a GeneratePress Element?

    Or does it matter?

    #1155113
    David
    Staff
    Customer Support

    Hi there,

    I don’t think it really matters BUT the hardcore WP geeks will say the wp_enqueue_ functions is the ‘proper’ way of doing it.

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