• Resolved woalmoore

    (@woalmoore)


    Thanks for your recent help in getting your shortcode and hooks to work as I needed. I’ve got one more issue. I’m using the shortcode like this:

    [mla_gallery orderby=”title” attachment_category=”June-11th” mla_caption=”{+title+}” mla_markup=paypal mla_styles=paypal]

    and this is my code that hooks into your plugin:

    function add_paypal_button_to_images ( $template ) {
    		
    		$template = '<td><table class="item_table"><tr>';
    		$template .= '<td class="gallery-icon">[+link+]<br /><p class="item_title">[+title+]</p></td></tr>';
    		$template .= '<tr><td class="image-paypal-form">';
    		$this_shortcode='[wp_cart:[+title+] Product:price:[Size|3.5&quot x 5&quot $1.00,1.00|4&quot x 6&quot $1.50,1.50|5&quot x 7&quot $2.00,2.00|8&quot x 10&quot $2.50,2.50]:end]'; 
    		$template .= print_wp_cart_action($this_shortcode);
    		$template .= '</td></tr></table></td>';
    		return $template;
    	}
       add_action( 'mla_gallery_item_template', 'add_paypal_button_to_images', 12, 1);

    It all works great but none of the images are clickable to get to the full screen image nor are they right-click downloadable. I thought the “[+link+]” code would have taken care of the link. I also tried putting link="file" in the shortcode or the markup and neither made the images clickable. Could you assist with the best way to take care of this?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author David Lingren

    (@dglingren)

    Good to hear from you again. Thanks for your question and the details of your code. Thanks as well for your patience in awaiting my reply.

    It would be a great help if you could provide a link to the page on your site where this gallery is displayed. I’d like to have a look at the HTML generated for the gallery display to investigate further.

    Thanks for any additional information you can provide.

    Thread Starter woalmoore

    (@woalmoore)

    Could you send me an email address. The pages are password protected and feature children so I’d prefer not having the password publicly available. If you’d prefer not to have your email address out, you can email me at [email protected].

    Thanks again.
    Allen.

    Thread Starter woalmoore

    (@woalmoore)

    Never mind. Here’s a link to a page with some images. Used the same short code for the gallery.

    Thanks.

    https://www.allenmoorephotography.com/gallery-test/

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your updates and especially for the link to a gallery on your site. I was able to view the HTML elements in the gallery and identify the problem.

    Your “Nikkon Child” theme is disabling the hyperlink for the thumbnail images in the gallery. In particular, lines 28 – 30 of the style.css file are:

    img {
        pointer-events: none;
    }
    

    You can either change the style.css file or you can override the default with an inline style.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the above suggestions. Thanks for your continued interest in the plugin.

    By the way, WordPress forum guidelines prohibit adding your email address to a support topic because you can be harassed, spammed or worse by someone reading the topic. The forum moderator will remove the address if they find it.

    Thread Starter woalmoore

    (@woalmoore)

    Thanks for catching that…now to figure out why I put it there.

    Yeah, I tried to go back to edit or delete my reply…I guess this isn’t Facebook.

    Thanks again.
    Allen.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Linking Images to Full Image File’ is closed to new replies.