• My client’s been noticing that the splash page shows on multiple pages when viewing the site. Had a developer friend look at this and he said “It’s (splash page) actually not specific to the “connect” page. Looking at the PHP code running this plugin on the server, the splash page is tied to a browser session cookie. If the cookie doesn’t exist (the browser start’s a fresh session or the cookie is manually deleted) the splash page will appear again.

    You can see this by opening multiple incognito windows (not tabs) with different pages. E.g, open one with the “/ourstory/” page and the other to the “/connect/” page. Both windows will show the splash page.”

    Can you code the php to ONLY show on the home page and not have it tied to a browser session cookie?

    website: williamsonheritage.org

    Thank you for your help!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • comyou

    (@comyou)

    Hi Lindamaybe2013

    I can see the same on my website. I had resolved it.

    Open file “very-simple-splash-page/includes/splash-page.php
    in “function splash_page() {…”

    You have to change the domain

    I do like this:
    this line added
    $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;
    this line modified
    setCookie( $this->cookie_name, time(), $this->cookie_expiration,'/',$domain,false );

    Even, you have to check the setcookie php documentation on the web
    Idealy, you have to write a little plugin to do it, to not make change directly in the very-simple-splash-page folder, because on the next plugin MAJ, your changes will be deleted.

    Let me know if it works

Viewing 1 replies (of 1 total)
  • The topic ‘Splash Page shows on Multiple Pages’ is closed to new replies.