cudak888
Forum Replies Created
-
Glad to know it wasn’t me screwing up the site code again. Thank you so much!
🙂
Dear Mihaela:
I was going to post the list of plugins I have on the site, but I’ve been able to reproduce it on a clean WP install with only Classic Editor and Modula running.
In order to serve the images from the “media” subdomain, I have the upload_url_path on the site set to “https://media.bikesharemuseum.com” for all the photos on the site.
When the upload_url_path is set to said subdomain, the srcset isn’t written in the code. When no upload_url_path is defined, as default, Modula’s srcset works as intended.
I tried this for a brief minute on the live site, and then reproduced it on my local, clean, WordPress test install w/Twenty Twenty:
1. I uploaded six images to the test site that are also shared with my live site.
2. I created an all-new Modula gallery with these six images, and the thumbnail size set to 150.
3. I dumped the gallery into a clean test post, and the the 300×300 versions came up in the src as they should.
4. I then went into …wp-admin/options.php ant set the upload_url_path to https://media.bikesharemuseum.com.
5. Checked the inspector; src now defaults to the full-size image.Let me know your thoughts, and if you still want the plugin list and lightbox settings from the site, even though it seems to be independent of it. The theme, FYI, is a heavily modified version of Bootstrap v.3 Basic.
-Kurt
Dear Mihaela:
Interesting. I’m a bit tied up this week, but I’ll gladly send the list and settings in a few days.
-Kurt
Dear Mihaela:
It appears as if I erred on one point, as the thumbnail size had been set to 500 (on the particular gallery listed here). However, I’ve changed it to 240, to match up with the “gallery-240” image size I’ve generated for the site (240×0). No difference on the front end according to the Inspector or PageSpeed. Also cleared the browser cache just in case.
I have a duplicate of the site running locally on XAMPP, so I turned off all plugins (minus Modula), created a test page with this specific gallery via shortcode (the bike page is a CPT; I didn’t want to modify Twenty Twenty for the test), set the thumbnail size to 240 on said gallery, and flipped on the Twenty Twenty theme.
Same result – Modula is loading the full size images.
Any ideas?
-Kurt
- This reply was modified 2 months ago by cudak888.
Thank you for this. I just tried it.
The code properly skips the full-size image, but all cropped and resized variants of said image are still smushed upon upload.
Any potential solution?
Solved it – I realized the Meow Lightbox wouldn’t dynamically grab the larger image unless it was generated using
wp_get_attachment_image()
. Perhaps this shows that my coding knowledge is still very much biased to HTML, and WordPress’ PHP is still a learning curve for me.Here’s the final code I used:
<?php $image_url = get_post_meta(get_the_ID(), 'pmount-img4', TRUE ); // store the image ID in a var $image_id = pippin_get_image_id( $image_url ); // get image SRC based on the custom field URL passed as an ID $serial = get_post_meta(get_the_ID(), 'pmount-serial', TRUE); // Get serial number and save as variable echo wp_get_attachment_image( $image_id, 'registry-thumb-4x3', "", array( "alt" => "Schwinn Paramount $serial - Picture 4" ) ); ?>
Dear Mihaela:
Glad to do it; it deserves the praise.
If you used the Custom Grid you need to go to the gallery’s settings > go to the Responsive tab > and turn on Custom Responsiveness.
That worked like a charm. I also used the following tweak to center the galleries:
.modula { margin-left: 11px; }
Will send an email soon – have a question about pagination.
Best,
-Kurt
Forum: Plugins
In reply to: [Advanced Custom Fields] Fix for the missing WP Custom Data Fields – FilterThat was an absolute life saver. I’m using ACF with USP Pro sharing both standard WordPress Custom Fields and ACF fields, and it’s impossible to use one with the other with the former missing.
Thanks again!
Forum: Plugins
In reply to: [WordPress Gallery MaxGalleria] Changing default page template?Dear Alan:
Thank you so much.
Now I know why the styling disappeared all of a sudden – in the midst of removing all the old files and keeping my local XAMPP copy synced with my live copy on FTP, I probably deleted the folder and template by accident – or during one of the many plugin deactivations I’ve performed.
It’s unfortunate that the template file is deleted on every update though – that’s more or less what I was trying to avoid with FooGallery. Though, come to think of it, I could modify that code snippet you provided to point to a template of a completely different name in a different folder, e.g.
<?php get_template_part( 'gallery', 'custommax' ); ?>
.It’s just that I don’t want to risk losing the customized template during a routine update on the local site. Even with a backup, it’s isn’t that reassuring.
-KK
- This reply was modified 3 years ago by cudak888.
Thanks for the reply.
It sounds if my explanation was lost a bit in translation. It’s been a while since I actually looked at this though, but I think I was referring to the fact that
overflow: hidden;
is quite difficult to control when I’m trying to apply it on one popup, but not another.No matter though, I found a workaround and everything is just fine now.
Thanks again!
-KK
Found it, thanks! The association of the photos with a single gallery shouldn’t be an issue.
Strangely enough, I decided to experiment with the database and batch-converted everything to MaxGallery. This seemed to clear all the images out of each gallery, but if I individually opened each gallery as a photo gallery (as opposed to a video gallery), all the photos would repopulate.
I did lose categories and featured images in the process, so it’s not that much work to get most of these squared away (though it would be nice to know where the photo/video gallery setting is stored in SQL – I could fix these all with a simple batch function if I knew).
EDIT: Found them under
maxgallery_type
image
andmaxgallery_template
image-tiles
inwp_postmeta
. Batch fix here we go.Thanks again!
-KK
- This reply was modified 3 years ago by cudak888.
Just tried it today. No problems updating with v2.9.68. Thank you.
Forum: Plugins
In reply to: [Widgets for SiteOrigin] Visibility breakpoint problemAnyone? I do have the paid version too, so I don’t mind escalating this off WordPress.org…
Whoops. You’re right! No wonder that feature caught me by surprise when I first saw it.
Thanks for the detective work – off to run this question by WP Inked.
-Kurt
Thanks, I appreciate it. Do let me know.
- This reply was modified 3 years ago by cudak888.