Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
BiggerBang CreditAttribution: BiggerBang commentedPlease 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
Comment #2
sahuni CreditAttribution: sahuni commentedAs for me I did that with css :
.gallery-images-list .image-title{
display: none;
Comment #3
BiggerBang CreditAttribution: BiggerBang commentedThat 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 :(
Comment #4
dddave CreditAttribution: dddave commentedNG3 is the place to be (and receive support).