Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 30/04/2021 Important information

    We transferred to another hosting so if you are experiencing any problem let us know. We will fix it as soon as possible.

  • 25/11/2020 BLACK FRIDAY is coming

    BIG SALE, 35% discount for all our extensions. Use BF2020 coupon code. Hurry up the discount is valid till 7 December.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

All gallery images have defaulted to "link to page
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: All gallery images have defaulted to "link to page
#63917
All gallery images have defaulted to "link to page 2 Years, 10 Months ago Karma: 0
Help!

I have more than 3,500 galleries. Suddenly and inexplicably, every galley image has defaulted to 'link to page' rather than 'link to media file'! That means that every image is opening in a iFrame. It looks terrible and it has slowed down the image loads to an absolute crawl.

I can't possibly go back over 50k or more images and set them back to "link to media".

The site is theownerbuildernetwork.co

I lodged a support ticket about 8 hrs ago but at that time I had not isolated the problem.

DW
The administrator has disabled public write access.
 
#63928
Re:All gallery images have defaulted to "link to page 2 Years, 10 Months ago Karma: 733
Hello,

The plugin doesn't change gallery settings. If a gallery is configured to open attachment page then this page will be opened into the lightbox. If the gallery is configured to open media file then this file will be opened into the lightbox.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#63936
Re:All gallery images have defaulted to "link to page 2 Years, 10 Months ago Karma: 0
Good morning. Yes, I do understand that the plugin did not make that change. My request was misunderstood.

SOMETHING has changed every gallery image setting from 'link to media file' to 'link to page'. That tells me that there must be a global way to reverse that so that the images link correctly. My hope is that you can guide me or at least point me in the right direction to find the solution.

I think ARI lightbox is exceptional and have never had a problem with it but unless I find a solution, my only option is to deactivate the lightbox and force visitors to use the native WP view ((

DW
The administrator has disabled public write access.
 
#63940
Re:All gallery images have defaulted to "link to page 2 Years, 10 Months ago Karma: 733
Hello,

Wordpress add value for 'Link to' parameter directly to gallery shortcode so if you want to change it for all galleries, it requires to update all posts with gallery shortcodes in a database and it can't be done with a simple SQL "UPDATE" query.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#63950
Re:All gallery images have defaulted to "link to page 2 Years, 10 Months ago Karma: 0
Hi again,

This gets more and more interesting. I deactivated every plugin today and the problem persisted. With the plugins still deactivated, I loaded a new theme. The issue STILL persisted!

I then reactivated the theme and the plugins. Issue persisted (no surprise).

Note that I was wrong about all gallery images linking to the page URL. Every gallery image is still pointed correctly to the media file BUT THINKS - if an image can think - that it is linked to the page! If I resave the gallery settings (without change), the images will open correctly in the ARI lightbox.

I then started testing different lightboxes to see if any would recognise the current settings. Voila! 'Responsive Lightbox & Gallery plugin works! box/

Unfortunately, that plugin lacks the functionality the ARI lightbox offers so I am still searching for the answer At this stage, I'm beginning to think something has altered the core code or it's something in the functions.php file.

Any further thoughts?

DW
Last Edit: 2018/11/03 11:28 By admin.
The administrator has disabled public write access.
 
#63956
Re:All gallery images have defaulted to "link to page 2 Years, 10 Months ago Karma: 733
You can add the following PHP code if want to link images in all galleries with media file and ignore "Attachment page" option:

Code:


add_filter(
    'shortcode_atts_gallery',
    function( $out, $pairs, $attrs ) {
        $out['link'] = 'file';
        return $out;
    },
    10,
    3
);



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12