It says to add this to the head section but I don't know where it is. This is the script. DM_redirect("m.stuffwholesale.com"); I looked at the phtml which I found in the forum but I just am unsure can someone let me know what to do? I also have to do the same for my other store (m.providencesilverco.com). I apologize for putting this in the wrong spot earlier. Thanks Ron

1 Answer 1


You may have 2 approach to do this:

  1. Add via XML. You may add in cms page design section, or add it your theme xml file. js/test.js

  2. Use system configuration to add it. Please go to System -> Configuration

On the left hand sidebar go to: General -> Design -> HTML HEAD

Paste your code inside'Miscellaneous Scripts' it will appear in the head.

This section is also useful if you multi-store.

  • I have added the script using #2 but the script is not showing in my head section. This is the picture link what am I doing wrong? thank you
    – Ron Gin
    Apr 11, 2018 at 14:53
  • I think it is correct. Can you F12 to see it is correctly loaded without error ? e.g. https problem
    – leo
    Apr 11, 2018 at 15:23
  • HI I check the script and the added script is not in the head section?
    – Ron Gin
    Apr 11, 2018 at 17:45
  • Did you add in correct scope? e.g. store view level has value to override it. Or you are using custom theme which will not output this config value in the template?
    – leo
    Apr 13, 2018 at 3:42
  • I think I understand but here is what I did I first changed the default configuration scope to my domain: then in miscellaneous script I uncheck the default box and pasted the script into the box. Then clicked save. Was this correct?
    – Ron Gin
    Apr 14, 2018 at 21:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.