Site logo

Archived topic

PrismJS with WordPress & GeneratePress

1 reply · Started by Scott on February 4, 2020

Viewing posts 1–2 of 2

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?

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.

This archived topic is closed to new replies.