I am trying to create a page that will have a variable number of tabs depending on the query string of the referring URL.
I've been able to get the referring URL by inserting this script:
How can I make it so that IF ref contains "this-text" then load 2 tabs?
Or, for that matter, to keep tabs out of the equation: IF ref contains "this-text" then <p>This works!!</p>
Any input will be greatly appreciated.
You want to create if/else and display 2 tabs with Liquid code?
This is not possible, you cannot create or declare a Liquid variable for JS.
Hope it helps!