Tagged: custom links, functions, gallery, links
-
AuthorPosts
-
March 4, 2021 at 1:24 pm #1285382
I am using the Gallery as an index of designs. Clicking on any of the designs is meant to take the visitor to that design page.
When clicking on the images I get either the Lightbox or the image on the same page. It doesn’t take the viewer to the custom linked page.
I have changed the Custom Link to be the page I want the user to be taken to, I have also changed the Link Settings to > use custom link.
All I get is the same image enlarged, rather than the page it is meant to be taking me to.
Any ideas?
Thanks
March 4, 2021 at 1:56 pm #1285397PS, I think the problem is the latest version of Enfold. 4.8.
I have set up a similar gallery on a test site (using Enfold 4.7.6.4.) and this takes the visitor to the correct page.
Link in private content.
March 6, 2021 at 4:05 am #1285964Hi,
Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardMarch 8, 2021 at 11:51 am #1286395Hi Rikard thanks for your help.
March 10, 2021 at 4:25 am #1286968Hi,
Thanks for that. I activated the parent theme, and it starts working as it should after that. That means that something in your child theme is causing this problem. I wanted to check the content of the child theme, but the Appearance->Editor functionality is disabled on your installation.
Best regards,
RikardMarch 10, 2021 at 12:32 pm #1287066Hi Rikard,
Thank you for checking for me. I have changed the CSS for a blank set and that made no difference.
But changing the functions.php file for a blank one fixed the problem.
I have pasted the contents of my functions file in the private content. Could you possibly see what is wrong please?
Thanks for all your help!
Colin
March 10, 2021 at 4:26 pm #1287171PS, I think I have found the function that is causing the problem.
The function is one kindly supplied by Kriesi to force Lightbox images to display at full size. Is there perhaps something wrong with the syntax that caused it not to work with the new Enfold / WordPress ?
// changes lighbox images to full size function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){ $link = wp_get_attachment_image_src($attachment->ID, "full"); return $link; } add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);
March 16, 2021 at 1:10 pm #1288504Hi Colin,
Sorry for the late reply!
We are updating Gallery element and will add option to display full size images in lightbox so function will no longer be necessary. We are probably going to add the new option in upcoming version.
Best regards,
YigitMarch 16, 2021 at 1:44 pm #1288522Not to worry. That’s great thank you!
March 16, 2021 at 1:57 pm #1288533 -
AuthorPosts
- You must be logged in to reply to this topic.