WordPress.org

Ready to get started?Download WordPress

Forums

Open a post in lightbox or populate a div (12 posts)

  1. jjkilpatrick
    Member
    Posted 4 years ago #

    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

  2. huggie
    Member
    Posted 4 years ago #

    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.

  3. jjkilpatrick
    Member
    Posted 4 years ago #

    Can you open posts in lightbox and not just images?

  4. huggie
    Member
    Posted 4 years ago #

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

  5. huggie
    Member
    Posted 4 years ago #

    Try Facebox instead.

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

  6. jjkilpatrick
    Member
    Posted 4 years ago #

    Thanks...I'll give it a try!

  7. jjkilpatrick
    Member
    Posted 4 years ago #

    Having trouble making facebox work on specific divs.

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

    Any ideas?

  8. jjkilpatrick
    Member
    Posted 4 years ago #

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

  9. huggie
    Member
    Posted 4 years ago #

    No problem, I'm glad it worked out.

  10. chavo
    Member
    Posted 4 years ago #

    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.

  11. tictok
    Member
    Posted 4 years ago #

    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

  12. alhertz
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.