This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 8 - Pages: 1 - Last Post: 27 Aug 25, 17:00 Last Post By: BRBremen
BRBremen

Posts: 88
Registered: 16-Nov-2012
Hide the caption box by default for 360-degree photos
Posted: 24 Aug 25, 14:17
 
  Click to reply to this thread Reply
Hello,

I would like to hide the caption box by default for 360-degree photos. However, I would like the caption box to remain visible for normal photos. Is there a way to do this?
Laza

Posts: 1,438
Registered: 6-Sep-2005
Re: Hide the caption box by default for 360-degree photos
Posted: 25 Aug 25, 07:41   in response to: BRBremen in response to: BRBremen
 
  Click to reply to this thread Reply
I couldn't find a way to hide the caption only on the first impression, but here's the code to hide it permanently.
.lightbox-main.vr + .lightbox-caption { display: none; }
BRBremen

Posts: 88
Registered: 16-Nov-2012
Re: Hide the caption box by default for 360-degree photos
Posted: 25 Aug 25, 17:50   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Thank you. The info bar has now disappeared. However, the 360-degree photo doesn't expand to the bottom of the image, as would normally be the case if you hide the info bar with the mouse. Is there a solution for this?
Laza

Posts: 1,438
Registered: 6-Sep-2005
Re: Hide the caption box by default for 360-degree photos
Posted: 26 Aug 25, 10:00   in response to: BRBremen in response to: BRBremen
 
  Click to reply to this thread Reply
If you remove the caption from the 360 photos, they will expand to the bottom. I don't think I can provide a solution other than this.
BRBremen

Posts: 88
Registered: 16-Nov-2012
Re: Hide the caption box by default for 360-degree photos
Posted: 26 Aug 25, 17:02   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
The photo doesn't expand downwards. The code apparently only makes the infobox invisible, but doesn't disable it.

https://bearbeitung.bahnfotos-region-bremen.de/Bearbeitung%202024/BR%20554%20Coradia%20iLINT%20-%20360-Grad-Innenansicht/index.html#img=554-1.JPG
Laza

Posts: 1,438
Registered: 6-Sep-2005
Re: Hide the caption box by default for 360-degree photos
Posted: 27 Aug 25, 07:06   in response to: BRBremen in response to: BRBremen
 
  Click to reply to this thread Reply
I understand, but I'm unable to provide a code that resolves this issue. You can modify the appearance with additional CSS code, but not the functionality (fitting the image), as that is hard-wired into the JavaScript code.
Laza

Posts: 1,438
Registered: 6-Sep-2005
Re: Hide the caption box by default for 360-degree photos
Posted: 27 Aug 25, 07:18   in response to: BRBremen in response to: BRBremen
 
  Click to reply to this thread Reply
For the upcoming version, I will add a modification to ensure that hidden captions (set by CSS) don't occupy space.
Laza

Posts: 1,438
Registered: 6-Sep-2005
Re: Hide the caption box by default for 360-degree photos
Posted: 27 Aug 25, 07:48   in response to: BRBremen in response to: BRBremen
 
  Click to reply to this thread Reply
Attachment Tiger.jaskin (5.3 MB)
This version will allow occupying the full screen, but you'll have to change the custom CSS to this:
.lightbox-main.vr + .lightbox-caption { display: none; }


However, toggling the info block back does not work.

Edited by: Laza on 27 Aug 2025, 07:48
BRBremen

Posts: 88
Registered: 16-Nov-2012
Re: Hide the caption box by default for 360-degree photos
Posted: 27 Aug 25, 17:00   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
I installed the new version and added the CSS code. Now everything works exactly as I expected. Great work, thank you very much.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums