Need help customizing single image description
-
At first I was having problems adding the description to a single image that I wanted displayed on a page. This is how I was able to get it to work…
I added the code:
<?php echo $image->description; ?>
to the template page for the single pic, wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/singlepic.php
(For your information, I am using the fancybox lightbox effect.)
Then I noticed that the description, which looks like it’s formatted as a link, is formatted to the left and I would like to center it. I also wanted to increase the font size of the description as well as make it bold.
I went through the plugin support forum and wasn’t able to find anything truly useful. At first I played with the wp-content/ngg_styles.css
I tried to add the following code just to see if anything would work:.ngg-gallery-description {
text-align: center;
font-weight: bold;
}.ngg-gallery-fancybox-content {
text-align: center;
font-size: 20px;
font-weight: bold;
}That didn’t work. I tried playing around with the jquery.fancybox-1.3.4.css but I don’t really know what I need to change or add. Any help would be appreciated.
I came across another issue, on my website I have it set where you have to be logged in to post a comment on a page or post. When you are not logged in, the page shows the images. When you are logged in, the images disappear but the description remains. If you click on the description, the image shows up by itself with the url like example.com/wp-content/gallery/page/image.jpg
Once these issues are fixed, I would like to remove the option of when you click on the picture it shows up on the screen with the opaque background. Sorry, don’t know what that effect is called.
Thanks in advance for any help!
- The topic ‘Need help customizing single image description’ is closed to new replies.