1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open The Login / Sign-Up Drawer Automatically

Discussion in 'Styling and Customization Questions' started by TheBigK, May 19, 2013.

  1. TheBigK

    TheBigK Well-Known Member

    I'm curious to know whether there's a way to automatically open the login / sign-up drawer at the top 30 seconds after the visitor visits the site?

    I know this would be annoying, but I want to try this out. :)
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> page_container_js_body

    Add this to the top:

    Code:
    <script>
    window.onload = function()
    {
    	setTimeout(function(){ $('#loginBar #loginBarHandle a').click()},30000);
    };
    </script>
    
     
    Steve F likes this.
  3. TheBigK

    TheBigK Well-Known Member

    Thanks a lot Jake. I'm curious to know whether the open drawer would be an obstacle for the Google Spiders in crawling the website (following links)?
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Nope.
     
    TheBigK likes this.

Share This Page