Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Chris Beardsley
Added: Aug 2, 2018 1:52 PM
Views: 20
Tags: no tags
  1. function() {
  2. if (/404/.test({{404 page view selector}}))
  3.   return "404 Error";
  4. else if (/frontend\/login/.test({{Page URL}})){
  5.   return "Sign in";
  6. }
  7. else {
  8.   return {{H1 text}};
  9. }}