Support » Themes and Templates » Open a post in lightbox or populate a div

  • Hi all.

    Just wondering if there are any plugins or if I will need to write some kind of php to make this work.

    http://www.birthday-tables.com/

    Basically on the bottom of the page I will have logos for venues. Instead of taking the user to another page I’d like the post to either open in a lightbox or populate the white space next to the search form.

    Any help would be much appreciated.

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • There are indeed hundreds of plugins for this sort of thing. If you’re after a simple lightbox, then something like Lightbox 2 would be fine.

    Can you open posts in lightbox and not just images?

    Ooops, my mistake, I misread the topic. Should have slowed down a little.

    Try Facebox instead.

    It can display images, divs and even remote pages (So I’m assuming it can do posts.

    Thanks…I’ll give it a try!

    Having trouble making facebox work on specific divs.

    Thinking I may have to edit my functions.php to make it work.

    Any ideas?

    Scrap that…got it working. Thanks very much for your help huggie!

    No problem, I’m glad it worked out.

    Hi. I’m looking for same goal but I just want to get post content, not header, no footer, only the post. Is this possible?

    Thanks in advance.

    Hi – I’m looking for the same thing as chavo aslo.

    When a blog title is clicked (on index.php for example) the post opens up in a lightbox window, but without the header or footer.

    So really just everything thats included within the_content() and nothing more.

    Can it be done?

    Many thanks
    Stef

    I’m assuming that you all don’t wish to call the header so that objects like navigation, logo, etc. don’t appear inside your light-box correct?

    If so, creating a separate header for your single.php or even a certain category, page, etc. would be an easy solution – one that doesn’t print out the information you wish not to be displayed.

    Some of these links could give you the answers you need. Give this a look: http://wordpress.org/extend/plugins/dynamic-headers/ I have never tried this plug-in but it certainly could achieve your desired results.

    Additionally, another alternative could be using conditionals inside your header.php file itself using categories to chose which posts are displayed in light-boxes. Something like this:

    <?php
    if (in_category('contact')){
    	<?php include(TEMPLATEPATH.'/headercontact.php'); ?>
    }
    else {
    	<?php include(TEMPLATEPATH.'/headerdefault.php'); ?>
    }
    ?>

    Again, never tried these before but they should work.

    Hope this helps!

    Alex

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Open a post in lightbox or populate a div’ is closed to new replies.