Replies
- Venutius on June 15, 2025 at 7:57 pm in reply to: How can I best achieve my perfect single photo view? #55522
I modified the plugin template for shortcode/grod-photo.php
/** * * Photo list in shortcode grid view * You can override it in yourtheme/mediapress/default/shortcodes/grid-photo.php * */ $query = mpp_shortcode_get_media_data( 'query' ); $lightbox_enabled = ! empty( $atts['lightbox'] ) ? 1 : 0; $lightbox_class = $lightbox_enabled ? 'mpp-shortcode-lightbox-enabled' : 'zoooom'; $media_ids = join( ',', $query->get_ids() );
This adds my zoom function to the gallery grid view, but if I enable the lightbox, and get nothing, just the attachment page, no lightbox, no description.
- Venutius on June 15, 2025 at 7:54 pm in reply to: How can I best achieve my perfect single photo view? #55521
This is the gallery (bottom of the page) I was looking at.
- Venutius on June 15, 2025 at 7:51 pm in reply to: How can I best achieve my perfect single photo view? #55520
The link shown in the Gallery Grid view is
https://brigantesnation.com/gallery/moulton-henge/media/moulton-henge-1m-lidar1-national-library-of-scotland-2/
The link address I arrive at once I click this is
https://brigantesnation.com/gallery/moulton-henge/media/moulton-henge-1m-lidar1-national-library-of-scotland-2
But here is the wrap for that image – not an mpp in sight.
https://brigantesnation.com/wp-content/uploads/2025/06/Screenshot-2025-06-15-204848.png
- Venutius on June 14, 2025 at 1:54 pm in reply to: How can I best achieve my perfect single photo view? #55516
I’m getting to it 🙂
Can I suggest the following change to the loading page for all of your MediaPress add-on plugins. It fixes a typo, and inadvertent crashes 🙂
//exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } //exit if MediaPress is not loaded If ( if ( ! class_exists( 'MediaPress') ) { exit; }
- Venutius on June 13, 2025 at 6:09 pm in reply to: How can I best achieve my perfect single photo view? #55513
The original template photo.php is not being seen. no matter what option I pick, I just get the wp attachment page.
- Venutius on June 8, 2025 at 10:27 pm in reply to: How can I best achieve my perfect single photo view? #55490
It is not picking up the photo.php template at all, and is just showing a standard image page I reckon – here’s the address it is going to: /gallery/the-yorkshire-dales/media/p1110837. That is not my post link structure.
I’ll revert to the old version, and see if it is something I’ve done.
- Venutius on June 8, 2025 at 9:52 pm in reply to: How can I best achieve my perfect single photo view? #55487
I got confused and was uploading from the wrong directory again lol, Going to start looking into this again right now.
- Venutius on June 5, 2025 at 6:31 pm in reply to: How can I best achieve my perfect single photo view? #55470
my overload is on /default/gallery/views/photo.php
I changed it, to add a span with a class. The span did not show. This was after resetting caches
presumably, this is no longer the template part being loaded. - Venutius on June 5, 2025 at 5:34 pm in reply to: How can I best achieve my perfect single photo view? #55469
I’ve checked the options, and my media settings are being saved. I’m wondering if there is a filter changing things?
- Venutius on June 5, 2025 at 5:14 pm in reply to: How can I best achieve my perfect single photo view? #55468
I reinstalled mpp2 and removed my over-rides, then reset the settings, to show lightbox, comments and description everywhere, and none of those features appear in my galleries.
I don’t think this has ever worked.
I’m now going to retry my over-rides, now I’ve worked out what should do what. Even the image size is wrong. My settings say large, my shortcode says large and I get medium.