Site logo

Archived topic

Header Element

1 reply · Started by Michael on May 13, 2020

Viewing posts 1–2 of 2

Hi, I hope all at GP are well at this time. Just a quick question, I am using a hook element into wp_head that only runs on pages with a specific tag. The purpose is to add 3 lines of js code, is this still the best way to do this under Gutenberg or is there a better way using blocks now?
Thanks.

Hi there,

thats still the best method for conditionally adding scripts to your site

This archived topic is closed to new replies.