Comments BaptisteJesu started the conversationJune 13, 2017 at 4:29pmHi,I'd like to load my custom js file only on portfolio single pages (single-thegem_pf_item).How can I target those in functions.php ? I tried "is_singular('portfolio') or is_single('portfolio') but it didn't work.ThanksBaptiste 7,092Oliver repliedJune 14, 2017 at 9:46amHI!Example: <?php if (get_post_type() == 'thegem_pf_item') { code } ?> Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, OliverBaptisteJesu repliedJune 14, 2017 at 11:28amThank you Gregor ! Oliver replied privately Sign in to reply ...
Hi,
I'd like to load my custom js file only on portfolio single pages (single-thegem_pf_item).
How can I target those in functions.php ? I tried "is_singular('portfolio') or is_single('portfolio') but it didn't work.
Thanks
Baptiste
HI!
Example:
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
Thank you Gregor !