Hello helpful NG-ers,
I'm trying to hide the title of my images and have followed the instructions here:

http://drupal.org/node/544748#tpl

and have tried deleting the following from the file:

    <h2 class="title">
      <a href="<?php print $node_url; ?>"><?php print $title; ?></a>
    </h2>

  

but this is not working.

I also tried a css fix in my local file:

.node-gallery-image .title{
display: none;
}

but this doesn't work either.

I can't turn off the title displaying in NG relationships as the title seems to be a required field.

Can somebody tell me where the title is originating from, or at least how to 'turn it off'?

Thanks in advance,
Andy

Comments

BiggerBang’s picture

Component: Code » Miscellaneous

Please forgive my self-taught knowledge (and I know it's patchy), but this is what appears to be happening:

-In gallery relationships, I have title unchecked as a display field.
-I have used local.css to tell node-gallery-image NOT to display the title (see post above)
-I have played around with the [node-node_gallery_image.tpl.php] file to try and stop it showing the title

Despite this, I have a problem; please see:

http://travellinglightcircus.com/big-chill-2010/126

and you will see the *ugly* title of my image appearing above the navigation bar.

It seems to me that the title on my images is coming from some code in the content class BEFORE the node-gallery-image class but this is where my knowledge stops.

PLEASE HELP!! I've spent silly amounts of time on this and I'm sure it must be an easy fix!

Andy

sahuni’s picture

As for me I did that with css :

.gallery-images-list .image-title{
display: none;

BiggerBang’s picture

That works when viewing the gallery of images, but my problem is when viewing a single image, so I've tried

.node-gallery-image .title{
display: none;
}

as well as

.node-gallery-image .image-title{
display: none;
}

and I've tried

.node_gallery_image .title{
display: none;
}

and

.node_gallery_image .image-title{
display: none;
}

but I still get the same issue :(

dddave’s picture

Status: Active » Closed (won't fix)

NG3 is the place to be (and receive support).