Support » Fixing WordPress » Javascript problem in Elegant Grunge

  • Well, it appears my previous post was too complicated for anyone to answer so I’ll try the simple version.

    I am using a CSS popup subscribe box which uses javascript to enable it if no cookie is present. I have places all the code in the header.php with the javascript just before the </head> but after the <?php wp_head(); ?>. It uses an OnLoad function in the opening body tag which calls the javascript.

    I think the problem is with the wordpress theme and layout somewhere because the same script works fine in another non-worpress website. Check out . If the message box appears it works and the problem must be on my side.


Viewing 1 replies (of 1 total)
  • I just installed it on another wordpress theme and it works fine. The problem may be with the “onload” call in the body tag. This is what I have in the website that does not work:
    <body onload="loadMsg('msgbox');" <?php if ( defined('EG_BODY_CLASS') ) echo 'class="'.EG_BODY_CLASS.'"'; ?>>

Viewing 1 replies (of 1 total)
  • The topic ‘Javascript problem in Elegant Grunge’ is closed to new replies.