WordPress.org

Ready to get started?Download WordPress

Forums

Dumb question. Where is the lightbox? (12 posts)

  1. scalemotorcars
    Member
    Posted 2 years ago #

    Ok, Im not really new but I cant find a simple solution or Im just missing something.

    I just uploaded a new 3.3.1 build. It has the new media upload to add photos into a post but it only links the images to the URL or the attachment page. I really don't need a complex galley like Nextgen. All I want to do is us a Lightbox display with the default media images.

    Anyone have a link to something really simple? And if at all possible something that just works without adding short codes. Thanks....

  2. scalemotorcars
    Member
    Posted 2 years ago #

    I guess I should add a link to the page Im working on.

    Here...

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    There has never been a lightbox in WordPress core. You need to look for a lightbox plugin.

  4. scalemotorcars
    Member
    Posted 2 years ago #

    I tried a few but no luck getting any of them to work. Since there are so many is there just a no thrills version that just's adds the lightbox to core code?

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    WordPress does ship with jQuery thickbox but that's terribly outdated now. If you want to use that you'd need to enqueue thickbox() in your theme's functions.php file.

  6. scalemotorcars
    Member
    Posted 2 years ago #

    That sounds familiar. I think I did that a few years ago with another site. Ill check it out. Thanks...

  7. scalemotorcars
    Member
    Posted 2 years ago #

    Ok I just killed my site and had to give it CPR. Anyone know the right spinet of code for 3.3.1?

    Thanks...

    Oh and Where in Functions.pho exactly would it go?

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    Try downloading the ZenLite theme and checking through its functions.php file. The exact position of the code in the functions.php file doesn't really matter.

  9. scalemotorcars
    Member
    Posted 2 years ago #

    Here's what looks like the code I need but its loaded with zenlite if statements. My theme uses $themename in place of actually calling the name as a prefix. I still am not clear on how to edit it to work with my theme.

    [Code moderated as per the Forum Rules. Please use the pastebin]

  10. esmi
    Forum Moderator
    Posted 2 years ago #

    Assuming you have defined $themename in functions.php, just replace zenlite with $themename.

  11. scalemotorcars
    Member
    Posted 2 years ago #

    I think I found the issue of it not working. They theme is using Prettyphoto Gallery in the ref of some images. I guess I have some reading to do.

  12. scalemotorcars
    Member
    Posted 2 years ago #

    Ok, so new question. Can I add a rel= value to standard gallery thumbnails?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.