Replies
- Venutius on June 17, 2025 at 5:23 pm in reply to: How can I best achieve my perfect single photo view? #55547
My last issue is that I’m trying to overload the single image view – the one that appears when you click on the image in the lightbox, the one you see if you turn the lightbox off and the gallery thumbnail is clicked from the shortcode gallery, could you tell me which file I should be over-riding for that?
- Venutius on June 17, 2025 at 5:19 pm in reply to: How can I best achieve my perfect single photo view? #55546
That one I think is my bad, I did not set the shortcode atts, so that one now works too.
- Venutius on June 17, 2025 at 5:12 pm in reply to: How can I best achieve my perfect single photo view? #55545
OK, back to the lightbox problem. It seems that the check for settings for the lightbox always returns false. and in that check in grid-post, if I make the answer to always be true, then I see the lightbox.
- Venutius on June 17, 2025 at 5:06 pm in reply to: How can I best achieve my perfect single photo view? #55544
Your suggestion works, though 🙂
- Venutius on June 17, 2025 at 5:01 pm in reply to: How can I best achieve my perfect single photo view? #55543
Nonetheless Brajesh, I have found your bug, maybe you can confirm the issue? As in, it is when you check for, and try to load local storage on my browser, it fails, and throws that error. Unless you are saying that I am wrong, and there is nothing wrong with the code, and look elsewhere?
- Venutius on June 17, 2025 at 2:52 pm in reply to: How can I best achieve my perfect single photo view? #55542
I reset everything, and in the single image view, am now seeing the description, so the default template is loading. No lightbox, but the image size is correct. I’m making progress.
- Venutius on June 17, 2025 at 1:10 pm in reply to: How can I best achieve my perfect single photo view? #55540
I have fixed it:
class-mpp-admin-settings-page.php line 625:
Was
if (typeof(localStorage) !== 'undefined') {Now
if (typeof(localStorage) !== 'null') {Now I can get back to understanding why MediaPress is not loading the right size photo, or the photo.php template file.
- Venutius on June 17, 2025 at 11:24 am in reply to: How can I best achieve my perfect single photo view? #55539
On the MediaPress settings page, the contnt loads, but then then all tabs are hidden, and I get the following error:
[2025-06-17 11:20:37] - Javascript Message: Uncaught Error: Syntax error, unrecognized expression: #038; - URL: https://brigantesnation.com/wp-admin/load-scripts.php?c=0&loadchunk_0=jquery-core,jquery-migrate,utils,wp-hooks,jquery-ui-core,underscore,moxiejs,plupload,jquery-ui-mouse,jquery-ui-sortable,jquery-t&loadchunk_1=ouch-punch&ver=c6d0b1135633ba322c1db55348037e4b - Line: 2I thought it was because the ampersand was being misprinted, but now I understand that this printed behaviour is correct, and that some js on this page is failing to recognise that content.
- Venutius on June 17, 2025 at 9:35 am in reply to: How can I best achieve my perfect single photo view? #55536
Ok, learning every day 🙂
It seems that having an ampersand printed as # 0038 ; is expected behaviour, and that it is some js, that is not recognising that expected expression that is failing. it is an html decode issue.
- Venutius on June 17, 2025 at 8:12 am in reply to: How can I best achieve my perfect single photo view? #55535
I renamed the plugins directory and selected the 2021 theme and it is still happening.