Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Tommaso Vietina
Added: Feb 26, 2019 4:21 PM
Views: 33
Tags: no tags
  1. add_action( 'wp_enqueue_scripts', 'fancybox', 100);
  2. function fancybox() {
  3.         wp_enqueue_style( 'fancybox', get_theme_file_uri('/bower_components/fancybox/dist/jquery.fancybox.css'));
  4.         wp_enqueue_script( 'fancybox', get_theme_file_uri('/bower_components/fancybox/dist/jquery.fancybox.js'));
  5. }