Jump to content


Photo
- - - - -

Redirect first-time visitors to 'welcome' page


  • Please log in to reply
9 replies to this topic

#1 justinroffmarsh

justinroffmarsh

    Advanced Member

  • Members
  • 30 posts
  • Country: Country Flag

Posted 29 November 2011 - 07:22 AM

Hi there. I would like to direct first-time visitors to a welcome (squeeze) page. I want the welcome page to be generated by Pagelines (i.e. not static html). I have found php script to achieve this. I wonder if someone can comment on where it would make the most sense to insert this code?

#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 16897 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 29 November 2011 - 09:00 AM

Hi Justin, Which theme are you using ?

#3 justinroffmarsh

justinroffmarsh

    Advanced Member

  • Members
  • 30 posts
  • Country: Country Flag

Posted 29 November 2011 - 06:02 PM

I'm using Platform Pro Dev. Here's the site:

Please Login or Register to see this Hidden Content

I want to set it up so that first-time visitors are directed to

Please Login or Register to see this Hidden Content

Justin

#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 29 November 2011 - 07:24 PM

Justin, I think this would be rather complicated, requiring the need for a cookie to validate against some benchmark to ensure that the visitor is new versus returning. That means likely inspecting the visitor's history, or, checking against a user base. That's beyond the scope of my level of support. I'd suggest hiring one of our pros for that at

Please Login or Register to see this Hidden Content



#5 justinroffmarsh

justinroffmarsh

    Advanced Member

  • Members
  • 30 posts
  • Country: Country Flag

Posted 29 November 2011 - 07:33 PM

Per above, I have the PHP code, I was just seeking input into where to put it. I'm actually suspecting that I could probably create a gateway page that routes traffic either to the Welcome page or to the Blog Home page -- that way, I could avoid embedding code in WP altogether.

#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 29 November 2011 - 07:40 PM

Justin, I wouldn't have a clue where to embed the php code and I'm suspecting it could crash your site. Depending on the code, it could theoretically go into the Custom Code in the header scripts area, but that's unlikely because PHP doesn't really run in the header, javascripts do. It could go into functions.php, but I'd have no clue what hook you'd use for this as it's really outside the scope of the theme functions and deeply into the realm of Wordpress and the browsers. I also suspect that you might be blocked by visitors who have cookies blocked.

#7 justinroffmarsh

justinroffmarsh

    Advanced Member

  • Members
  • 30 posts
  • Country: Country Flag

Posted 29 November 2011 - 07:45 PM

Okay, no problem. Thanks for commenting. Those are my concerns too. I'll seek out a PL Pro as you suggest.

#8 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 29 November 2011 - 08:16 PM

Those guys are amazing at creating work-arounds and solutions you or I might never think about.

#9 justinroffmarsh

justinroffmarsh

    Advanced Member

  • Members
  • 30 posts
  • Country: Country Flag

Posted 29 November 2011 - 08:20 PM

Great. In the meantime, I'm using the What Would Seth Godin Do plug-in and that's a nice option as well. It cookies visitors and displays an inline textbox for the first x number of page-views.

#10 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 29 November 2011 - 09:12 PM

Now that does sound like a sensible temporary solution!