ristretto6
Forum Replies Created
-
Okay great. I still can’t see any difference between the “yes/no” propertied images, but the page loads now, so that’s a good thing ??
So to customize the border (and make it easier to tell if this is working), I presume I’d go to Appearance–>Edit CSS–>and then insert some code along the lines of:
.bordered
{
border:5px solid red;
}Does that sound right?
Okay, thanks for that — could you be a little more specific about where exactly to put that code to make the border show up, though?
For example, here is the block of code in the gallery-caption.php file that I presume we’re talking about:
<!-- Thumbnails --> <?php $i = 0; ?> <?php foreach ( $images as $image ) : ?> <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $image->style ?> > <div class="ngg-gallery-thumbnail" > <a href="<?php echo $image->ngg_custom_fields["URL"]; ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> > <img title="<?php echo $image->ngg_custom_fields["Tagline"]; ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image-> thumbnailURL ?>" <?php echo $image->size ?> /></a> <a href="<?php echo $image->ngg_custom_fields["URL"]; ?>"> <?php echo $image->alttext ?> </div>
I’ve tried inserting your border code into a few different places, and each time, when I reload my gallery page, this error message turns up:
Parse error: syntax error, unexpected ‘{‘ in /home4/lindsey/public_html/urbancraftuprising.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/gallery-caption.php on line 40
Am I just inserting that code in the wrong place?
Thank you!
That really helped, thank you! Okay, now that I’ve located the correct file (I am using gallery-caption.php), I have successfully gotten my gallery to include links from every photo to the correct URL (https://urbancraftuprising.com/vendors).
What I’m wondering now is, how can I apply formatting that corresponds with a drop-down menu? I have created a custom drop-down menu field called “New Vendor,” with a yes/no option. I would like the images marked as “yes” to display some sort of special border formatting, perhaps colored yellow, or 10px wide, for example. I know enough CSS to play around with the formatting options on my own, but what code would I insert into the gallery-caption.php file to make this field display specific formatting rules?
Thank you!
I’m having the same problem here — I’m trying to muddle through some hacks I’ve found online that will allow me to add URL links to my images.
I’ve found the instructions for this hack in a couple of places:
1) https://jackplug.co.uk/nextgen-gallery-link-to-url/
2) https://www.kimwoodbridge.com/how-to-link-nextgen-gallery-images-to-an-individual-page-or-post-in-wordpress/#comment-29369However, both of these refer to a gallery.php file that doesn’t seem to exist in my file structure. I had a hunch that these tutorials are based on old versions of NG, and it looks from these posts like I am right about that.
Could someone help me locate the new file I should be altering to allow me to create thumbnails that link to external URLs? I have already created a custom field called “URL” — I just don’t know what to do with it!
Thanks!
Hi, everyone. I was having the same problem and tried the fix outlined here, but I think I really messed something up. I followed the directions exactly, but after uploading the changed fpp_index.php file, I now visit my blog (which is https://customyarn.com/blog) and get nothing but a blank screen and this error message:
Parse error: syntax error, unexpected ‘}’ in /home/lindsey/public_html/customyarn.com/blog/wp-content/plugins/facebook-page-publish/fpp_index.php on line 5
I know I must have just messed something up in that file, and stupidly didn’t make a backup of the file before doing this and re-uploading it. I can’t even access my back office to uninstall this plugin and start fresh.
Is there any way to get a “clean” copy of this fpp_index.php file so I can reupload it and get back on track? I’m kind of freaking out here without being able to access my blog at all ??
Thanks!
Forum: Fixing WordPress
In reply to: Widgets not appearingBummer. Oh well, thanks for your help!!
Forum: Fixing WordPress
In reply to: Widgets not appearingAh, there we go! You’re right, they were actually inactive when I switched back to the default theme, and reactivating them / clearing the cache fixed it.
So, I guess that must mean it’s a problem with the theme I was using then, right? Does that mean that theme just isn’t compatible with those widgets? Or is there a way to get inside the theme and allow it to display them?
Forum: Fixing WordPress
In reply to: Widgets not appearingHmm, not sure if I did this right, but when I went to rename the theme (i.e. in my FTP, changed the “scrappy” folder in wp-content/themes to “scrappy.hold” and then visited my site, all I got was a blank page.
Instead, I reverted back to the default theme via my dashboard. Doing this solved some of the problem (now “recent posts” and “categories” widgets appear, but nothing else).
Forum: Fixing WordPress
In reply to: Widgets not appearingHmmm, I tried the FTP method you linked to in the documentation, and no change ?? I have re-enabled those two plugins I mentioned above; do you think I should delete them permanently, since disabling them or trying the method above doesn’t seem to do anything? I really need those plugins so I’d like to not do that if I don’t have to…
Forum: Fixing WordPress
In reply to: Widgets not appearingI actually have seven: Meta, Recent Posts, Text, Categories, Archives, Search, and another Text.