g4zilla
Forum Replies Created
-
Thanks for your reply! I have deleted the cache folder, and recreated it via ftp. Afterwards, I was able to go into WPFC settings and successfully delete the cache. Via ftp, though the permissions were indicated as correctly set, obviously something was…stuck. Thanks for your help!
Thanks for getting back to me, Naveen. I had previously clicked “Refresh Results” (more than once over a period of time) but the results never changed. That’s why I reached out. However, just as a car stops making a noise when the mechanic checks it out, the results have now updated as they should.
Why they hadn’t before, I have no idea. But, the bottom line is everything is working as it should. So I’m good!
Thank you for your help!
Sure can, Naveen!
Crown Point CabinetryPatrick,
I found the culprit. WPMU Dev support supplied me with a mu-plugin, written to remove dashes that got inserted into conditional fields. (That other thread is around here somewhere)
Apparently the updates to Forminator now make this mu-plugin obsolete.
Here’s the code from the file that I deleted:
<?php /**Removes dashes between words in form results */ add_filter( 'forminator_custom_form_mail_data', function( $array, $custom_form ) { $selects = array(); foreach ( $array as $key => $val ) { if ( strpos( $key, 'select-' ) !== false ) { $selects[] = $key; } } if ( count( $selects ) > 0 ) { foreach ( $selects as $select ) { foreach ( $custom_form->get_field( $select )['options'] as $option ) { if ( $option['value'] === $array[ $select ] ) { $array[ $select ] = $option['label']; } } } } return $array; }, 10, 2 ); ?>
My forms results are all there, once again.
Thanks for your help,
Jeff
Update: Got the staging site up and running. Sent a test form before making any changes or turning off plugins. I then remembered Outlook is our SMTP server and that is locked to specific urls and a whole bunch of other stuff. Bottom line: The form got sent, but never arrived. I’m sure it got designated as spam and therefore blocked from going on.
Am now looking into a temp SMTP server for the staging site.
Edit: Yep, just saw this in my staging site:
EMAIL DELIVERY ERROR: the plugin WP Mail SMTP v2.8.0 logged this error during the last time it tried to send an email: Mailer: Outlook invalid_client AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application
- This reply was modified 3 years, 9 months ago by g4zilla.
Thanks for the new links, Patrick. I will create a staging site, and follow the flow as you suggest. If I run into any questions along the way, I will be sure to ask. Otherwise, when complete, I will report back what I find.
Thanks,
Jeff
Apologies for poor formatting of previous post!
Hi Patrick,
Sorry, I couldn’t see your example as it yielded a 404.
Here’s a link to my example that demonstrates the missing info. In the message section of the image, I comment on what
- should
show up in two fields. You’ll see both affected fields are blank.
Link to my snapshot: <https://www.dropbox.com/s/qb9dz0jxadaj0aw/email-results.png?dl=0>
In the meantime, I will review the documentation you suggest.
Thanks,
Jeff
Hi Patrick,
Thanks for the fast reply! Here’s the link to the form: https://www.dropbox.com/s/0ikyhrjhaf69wzp/contact-us.txt?dl=0
Thanks,
Jeff
“B) Is there a chance that your page content isn’t inside a div with the class “entry-content”?”
We have a winner! (I told you I was a rookie!) That was exactly the problem.
For the individual galleries in Elementor, I sussed out the selector
.elementor-text-editor
and now the function readsfunction gallery_inside_album() { ?><style> .elementor-text-editor > * {display: none;} .elementor-text-editor section {display:inherit;}</style><?php } add_filter('foogallery_located_template', 'gallery_inside_album', 10, 3);
And it works perfectly. Thank you for a simple solution, and thanks for being so patient and helping me! Have a great weekend!
– Jeff
I viewed source on one of my individual gallery pages, and I do see my intro text and that <style> block just as you have it written in your post above.
Hmm…dang it. I must be doing something wrong. I added your function near the end of my theme’s functions.php file. (I liked your idea of removing the page-id so that it will apply to all pages.)
And I was able to wrap <section> tags around the shortcode in Elementor. (For anyone using Elementor: Don’t use the Shortcode widget to place the shortcode, use the Text Editor widget)
The only thing I can think of is do I need to modify this line at all?
add_filter('foogallery_located_template', 'gallery_inside_album', 10, 3);
I really appreciate your willingness to help!
- This reply was modified 5 years, 5 months ago by g4zilla.
Matt,
Thanks for this, much appreciated!
So if I follow correctly, I paste the code into my functions.php file (after I change “#post-648” to my “#page-3541” in two places)
And then wrap my Foogallery shortcode in a <section> tag on the Album page.
Something I hadn’t thought of until now: I have multiple Albums (about 20! containing a whole bunch of Galleries) Would I just add the page id for each album page separated by commas in the php code? I’m assuming your solution is designed for a single Album.
Thanks again for helping out this rookie!
Hi Matt, would you be able to share some more specifics on your solution, for those of us less CSS-savvy?
I’ve encountered the same situation, having a Page with an Album of a group of Galleries. I have intro text on the Album page, but would really like it to not show when an individual gallery has been loaded. This is especially troublesome on mobile (phone) display, because when the Gallery loads, my intro text fills the screen. Makes it look like the Gallery didn’t load.
I’m running Elementor Pro with FooGallery, but can place custom CSS as needed. I just don’t know what to put in for the CSS.
Thanks for any help you can share!
Jeff
- This reply was modified 5 years, 6 months ago by g4zilla.
Hi, requested screenshots sent via email. Thanks!