Hiding the div of the caption space when empty

Phoca Gallery - image gallery extension
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Hiding the div of the caption space when empty

Post by phidias81 »

Is there a way to hide the caption space when empty?
In example in this album I have no captions
http://www.nomadtravellers.com/photo-al ... modificato
But it's still showing the caption space. Because in the code

Code: Select all

<a class="highslide" title="" href="/images/phocagallery/World/Europe/Bulgaria/Black Sea/thumbs/phoca_thumb_l_040-Nesebar-Bulgaria-0381.jpg" onclick="return hs.expand(this, { slideshowGroup: 'groupC0',  wrapperClassName: 'dark',  
dimmingOpacity: 0.7,  align : 'center',  transitions : ['expand', 'crossfade'], fadeInOut: true });" > 
<img src="/images/phocagallery/World/Europe/Bulgaria/Black Sea/thumbs/phoca_thumb_m_040-Nesebar-Bulgaria-0381.jpg" alt="" class="pg-image" /></a> 
<div class="highslide-heading">00040-Nesebar-Bulgaria-0381</div> 
<div class="highslide-caption"></div>
is showing at the end the empty div of the caption

Code: Select all

<div class="highslide-caption"></div>
There is no way to hide it when it's empy, so that the space is becoming collapsible?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hiding the div of the caption space when empty

Post by Jan »

Hi, this div should not do the space, it should be displayed only in "popup" not in the code, try to check the parameter in your gallery where there is set the height for the box.

Jan
If you find Phoca extensions useful, please support the project
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Hiding the div of the caption space when empty

Post by phidias81 »

Sorry, I think it wasn't clear because I linked a page that after I modified. I put a screenshot to show better:
Image

The caption (descrition) that I moved to the right instead of the bottom, is showing despite there is no content and should not be visible. That's why I would like to delete this empty div that is created I don't know where


Code: Select all

    <div class="highslide-caption"></div>
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hiding the div of the caption space when empty

Post by Jan »

Hi, then try to see:
components/com_phocagallery/views/category/tmpl/default-images.php
If you find Phoca extensions useful, please support the project
Post Reply