Skip to content

Mobile: Global Search and Replace

Rob Knight edited this page Jan 12, 2018 · 1 revision

Use Cascade's global search and replace tool to make the following changes.

1. Replace link to fancybox.js and alter javascript

To update the Fancybox script we use across the site, we need to replace the link from the old to the new. Additionally, we need to replace the standard jQuery $ selector with jQuery.

Step 1: Replace link to Fancybox script

  • Asset Name: local-html-head-gallery
  • Search Terms: http://static.ucsc.edu/js/fancybox/jquery.fancybox-pack.js
  • Replacement Term: http://static.ucsc.edu/_responsive/lib/fancybox/source/jquery.fancybox.js
  • Asset Types: Blocks

Step 2: Replace link to Fancybox stylesheet

  • Asset Name: local-html-head-gallery
  • Search Terms: http://static.ucsc.edu/js/fancybox/jquery.fancybox.css
  • Replacement Term: http://static.ucsc.edu/_responsive/lib/fancybox/source/jquery.fancybox.css
  • Asset Types: Blocks
Clone this wiki locally