• Hello there,

    I would like to show the title with the lightbox effect. I mean that when one clicks on an image, the pop-up effected window (lightbox) to show obviously the image title.

    Do you have any idea??

    Thank you very much in advance!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter ioannispl

    (@ioannispl)

    Please anyone who can help?!?
    It is pretty urgent for my project!

    Thanks!

    Thread Starter ioannispl

    (@ioannispl)

    Yes like that one, but without the auto-slide.
    Which lightbox effect is this?
    Thanks!

    I use the Lightbox Plus plugin. I edited the “Shadowed” style so the title and nav controls wouldn’t overlap.

    In Nextgen Gallery, whatever is in the “Description” field shows in the title area of the lightbox viewer.

    Thread Starter ioannispl

    (@ioannispl)

    Actually a have many many pictures in albums, so I cannot write down each time the title of the picture in the description field. I want to pull the original title of the .jpg file.
    Is that possible? Did I understand right?

    Thanks!

    @ioannispl I think we understand each other. Yes, it would be quite a job to go in and type all those titles in if you have many photos already uploaded. I write in the description when I upload a new set and they usually are all the same within the set, usually the event name, so I can copy & paste quickly.

    I will take a look later today or tomorrow and see if I can figure an easy method for what you need. Back to you later!

    Thread Starter ioannispl

    (@ioannispl)

    Thank you very much for your time! ??

    ioannispl, try this:

    In line 42 of gallery.php (wp-content/plugins/nextgen-gallery/view/gallery.php) replace description with

    filename to display filename with extension
    alttext to display filename without extension

    I figured out that I can use title to display the gallery name. This will save me from copying the gallery name into the description field for each photo.

    Let me know how it works for you.

    Rod

    Thread Starter ioannispl

    (@ioannispl)

    It works perfect!!!

    Thank you very much for your help!!! It was easy finally, but I couldn’t figure it out!
    Thanks again!

    I’m happy it worked for you. I don’t really know what I’m doing usually. I just poke around in the files and change things to see what happens. I know just enough to be dangerous. I made my own site crash twice figuring this one out, but I had fun figuring it out. ??

    Hi rodmusic,
    If perchance you see this, how did you edit the code so that the title and controls don’t overlap?
    Thanks in advance!

    Hi bellaspur,

    Nice to see someone new happened upon this thread. I made changes to colorbox.css in the “Shadowed” theme. Location: wp-content/plugins/lightbox-plus/css/shadowed/

    Within colorbox.css replace the 9-line section beginning #cboxError with the following.

    #cboxError{padding:50px; border:1px solid #ccc;}
            #cboxLoadedContent{margin-bottom:20px; margin-top:20px;}
            #cboxTitle{position:absolute; bottom:0px; left:0; text-align:center; width:100%; color:#444; font-weight:bold; }
            #cboxCurrent{position:absolute; top:0px; left:100px; color:#999;}
            #cboxSlideshow{position:absolute; top:0px; right:42px; color:#444;}
            #cboxPrevious{position:absolute; top:0px; left:0; color:#444;}
            #cboxNext{position:absolute; top:0px; left:63px; color:#444;}
            #cboxLoadingOverlay{background:url(images/loading.gif) 5px 5px no-repeat #fff;}
            #cboxClose{position:absolute; top:0; right:0; display:block; color:#444; font-weight:bold;}

    I suggest you make a copy of the “shadowed” folder in the same directory, give it a really cool name (like “shadowed 2”) and make the changes in there, just in case things get wacky, or you want to experiment. The name for the new folder will appear in the list of available theme in the Lightbox Plus settings.

    Let me know how it works for you, and maybe post a link so I can have a look.

    Rod

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Show title in the lightbox effect’ is closed to new replies.