fourlightsweb
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Gallery Custom Links] Works but Lost HTML in Caption FieldMarking this resolved as the original poster has no further information.
Forum: Plugins
In reply to: [WP Gallery Custom Links] 2 galleries on one pageThe social media icons on that page don’t have any links around them at all – please check to make sure your gallery setting is set to link to “file” or “attachment” – “none” will result in no links being applied to the images, in which case this plugin won’t be able to swap in the custom links.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Missing IMG ALT tagsI just did a test on http://www.fourlightsweb.com/wordpress-plugins/wp-gallery-custom-links/ with “Test” alt text on the first image, and it looks like it shows up fine in the source. This plugin only changes attributes on the a tag, not the img, and doesn’t touch title or alt text fields at all, so I’d probably look at your theme’s gallery code.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Adding no follow to images in galleryIt may be something I consider adding in the future, but at this time there’s not a way through this plugin, sorry. 🙁
Forum: Plugins
In reply to: [WP Gallery Custom Links] Compatibility full images, Jetpack carouselWas just going to suggest removing the link=none, glad you got it working! 🙂
Forum: Plugins
In reply to: [WP Gallery Custom Links] One image – multiple URLs?WordPress allows for html in image captions – you may want to explore adding multiple links through that, or possibly a shopping cart plugin if you’re looking to show a gallery of products. This plugin only deals with the link around the image, not any text that goes under it.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Works but Lost HTML in Caption FieldThis plugin shouldn’t be affecting captions at all, unless maybe you’re linking to the same image/attachment url as the gallery image, in which case it might be replacing those with the custom link too. What types of values are you entering for your captions?
Forum: Plugins
In reply to: [WP Gallery Custom Links] add onclick to urlsIn the new version 1.10.0 you can add additional css classes to the links around the images, so hopefully that may help you when adding onclick effects via javascript.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Adding Custom CSS Class to each Custom LinkJust FYI, the new version 1.10.0 has the ability to add css classes to each link in the gallery:
https://wordpress.org/plugins/wp-gallery-custom-links/faq/
Once you have a css class on the link, you should be able to select its image by using jQuery(‘.someclass img’), so hopefully this helps.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Link titleYou may be able to add image/link titles using jQuery in your site footer if you have no other options (this code hasn’t been tested but is for a general idea):
jQuery('#gallery-2 a[href$="some-url.com"]').attr('title','Some Link Title');Forum: Plugins
In reply to: [WP Gallery Custom Links] Adding Custom CSS Class to each Custom LinkYou may be able to do something like the following using jQuery for each link in your site footer if you have no other options:
jQuery('#gallery-2 a[href$="some-url.com"]').addClass('some-class');Forum: Plugins
In reply to: [WP Gallery Custom Links] Link titleI think that was something being added to the images by my theme – this plugin doesn’t have a way to specify an image or link title, sorry.
Forum: Plugins
In reply to: [WP Gallery Custom Links] Adding Custom CSS Class to each Custom LinkI might be able to add something like this in the future, but at this time there’s not a way to add custom classes per link using this plugin, sorry.
Forum: Plugins
In reply to: [WP Gallery Custom Links] add onclick to urlsThere’s not a way to specify a custom onclick function per link, but you should be able to handle this with jQuery if necessary, something like (not tested):
jQuery('#gallery-2 a[href$="some-url.com"]').click(function(){ someFunction('some/background/image.jpg'); }); function someFunction(bgImage) { // Code to swap bg image for a link }You may find this link helpful:
http://stackoverflow.com/questions/303956/select-a-which-href-ends-with-some-string
Or, instead of passing a background image, you could apply the same function to all gallery links, and use a standard naming convention like “bg-image.jpg” and “bg-image-click.jpg” so you wouldn’t have to have custom function calls for each image.
Good luck!
Forum: Plugins
In reply to: [WP Gallery Custom Links] Bulk change of gallery urls – possible?There’s no bulk image import tool or anything, but if you were looking for a way to set custom URLs programatically (ie if you were writing a script/plugin to do some kind of bulk image import), you could use something like the following:
update_post_meta($post_id_of_uploaded_image, '_gallery_link_url', $some_custom_url);and that would add a custom url for each image as it’s added to WordPress through your script that this plugin could pick up and use later.