Question

exclude videoask from a subdirectory

  • 20 February 2024
  • 1 reply
  • 12 views

Hi, 
I want to exclude videoask from showing on a subdirectory of a site and all the pages that are associated to that subdirectory.

I have the code to exclude videoask from specific urls (https://codepen.io/videoaskhelp/pen/wvoPXpj)
but I’m not sure how to modify this script so that it excludes the widget from showing on all pages under that sub directory

 

Any help would be greatly appreciated.

Thanks!


1 reply

Userlevel 7
Badge +5

Hi @Neil J thanks for stopping by the community 😊

We don’t have a code example that will capture all the sub-pages, but tagging in @picsoung and @andrew_videoask just in case they’ve seen something similar on their travels...

Reply