WordPress.org

Ready to get started?Download WordPress

Forums

WP Multibox
[resolved] Start Lightbox when page loads only on front page (2 posts)

  1. Filespit
    Member
    Posted 1 year ago #

    Hello there, I need some help with a lightbox function. On my site the visitor has the option to change language by clicking a link in the header. When clicked, a lightbox is shown with the various language options, so no problems not showing anything. What I want to do now is make that very same lightbox appear automatically on the front page when it loads. The lightbox shall load ONLY on the front page, and ONLY the FIRST TIME of visit. If a language is selected once, the lightbox shall not appear the next time the front page is visited. To change language again the visitor can use the link in the header as mentioned.

    Any ideas how I might fix that?

    Plugins I am using are WP Multibox for displaying html in a lightbox, and qTranslate for the language options.

    http://wordpress.org/extend/plugins/wp-multibox/

  2. 3dolab
    Member
    Plugin Author

    Posted 1 year ago #

    You could implement it by firing the click event according to a cookie value, all with javascript in your theme's home.php, front-page.php or index.php files.

    the MooTools framework provides useful commands and shortcuts also for cookie management.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic