fourlightsweb
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Gallery Custom Links] Not saving link text after entry.Were you able to get this working? I took a look at your page and it looks like the images are linking to a login page (the link to the screenshot appeared to be broken).
Forum: Plugins
In reply to: [WP Gallery Custom Links] Set target to an iframeMarking this resolved as poster has no further response.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Problems in PHPMarking this resolved as poster has no further response.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Links in CaptionWP Gallery Custom Links actually doesn’t do anything with captions – WordPress itself lets you edit image captions directly, and anything beyond that is being generated by your theme code. If your theme is automatically creating captions with links around them, you would need to modify your theme’s gallery code, or contact the theme author and see if they would consider adding support for WP Gallery Custom Link’s custom link field in their captions. Alternately, you could try to set a caption link to the same value as its parent container’s image using jQuery after the page loads (exact code for this would depend on your gallery’s HTML code).
Forum: Plugins
In reply to: [WP Gallery Custom Links] Not working in Portra WPshower themeI installed the free theme and viewed my gallery test page on it, and it appears the theme is using its own customized layout for the gallery shortcode in the form of an animated slideshow. The images in this slideshow do not appear to have any links around them, so WP Gallery Custom Links doesn’t have anything to match on to swap in the custom links. You might want to try contacting the theme author to see if they could add a gallery format that lets you have linked images, if there’s not one already.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Problems in PHPI’m not sure what exactly an $image is and/or contains, but you’d need something like this:
$custom_url = get_post_meta( $image->ID, '_gallery_link_url', true );$image->ID is just a guess, it may or may not work, you’d probably need to do a var_dump($image) to find out exactly how to access the post ID of that object. The post ID of the image is what you need to put as the first function parameter.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Plugin not working with firefox 33.0.3Marking this resolved since no further response from original poster.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Page with gallery won't load with plugin activeMarking this resolved since no further response from original poster.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Custom Link Not WorkingMarking this resolved since no further response from original poster.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Link to the attachment page?Marking this resolved since no further response from original poster.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Set target to an iframeThere’s not a way to specify a target iframe in the plugin, although you could probably use jQuery to make the change. Something like the following (not tested):
jQuery('.page-id-7 .gallery-item a').attr('target','youriframeid');Forum: Plugins
In reply to: [WP Gallery Custom Links] Jetpack's Photon module breaks custom linksI’ll look into it, thanks!
Forum: Plugins
In reply to: [WP Gallery Custom Links] Plugin not working with firefox 33.0.3Yeah if it’s on the admin side, it’s probably not this plugin. Does the problem still occur when WP Gallery Custom Links is disabled?
Forum: Plugins
In reply to: [WP Gallery Custom Links] Plugin not working with firefox 33.0.3This plugin only changes the href attribute on links around gallery images, it doesn’t change gallery layout or formatting, so it shouldn’t be affecting anything outside of gallery code on the front end.
But if you’re talking about adding/editing a gallery, are you referring to the admin/editor? This plugin adds a few fields to the image edit screen, but doesn’t affect the WordPress editor or the links to add/edit a gallery. Do you still have this problem if WP Gallery Custom Links is disabled?
Forum: Plugins
In reply to: [WP Gallery Custom Links] Switch off target selfUnfortunately there’s not currently a setting to disable this. I would suggest using jQuery to remove the attribute from all links in the gallery, something like the following (not tested):
jQuery('#gallery-2 a').removeProp('target');If you really wanted to modify the plugin code, you could probably comment out where $target is set to “self” if the value is blank (also untested):
if( trim( $target ) == '' ) { // If empty string ("Same Window") is selected, set target to _self $target = '_self'; // <-- comment this outI would recommend going the jQuery route over the plugin modification route, as you would need to remember that change and continually make it every time the plugin is updated.