kengholm
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Virtue] Image Captions always Left AlignedHello Kevin,
Responding to your requests:
1) Link to a site using my patch to make captions align based on the image’s alignment setting: (note that the people who do the content are using an apparently random mix of caption alignments) https://www.pnwglassguild.org/the-glass-arts/2) Here’s the patch in that sites’ Appearance > Customize > Additional CSS:
.wp-block-image .aligncenter {
text-align: center;
}
.wp-block-image .alignright {
text-align: right;
}
.wp-block-image .alignleft {
text-align: left;
}
.wp-block-image .alignfull {
text-align: full;
}
.wp-block-image .alignwide {
text-align: wide;
}That does the job, but I put it into Additional CSS because I’m hoping it’s only a temporary patch. Unfortunately, when I deleted those lines just now, the captions still revert to left-aligned, so I have to keep the patch for that site.
On another site, I can remove the css patch for a few weeks so you can see the incorrectly left-aligned captions on this page: https://www.haitiapgrandi.org/all-news-posts/3) Just to restate my issue: Only when using Virtue theme or a Virtue-Child theme are captions forced to left alignment. With Theme 2022 enabled, caption alignment works fine. My own little css file is pasted into an earlier post in this thread and it doesn’t mess with alignment anywhere but on the Home page, which is why I provided a link to the blog page instead.
4) I didn’t ask a second question in this thread. My posts are entirely about being able to control caption alignment for the basic Image block. I don’t know who com800 is.
Thanks,
KathyForum: Themes and Templates
In reply to: [Virtue] Image Captions always Left AlignedThank you, Ben! That looks like a good patch for now. I’ll try it soon and probably do similar for .alignright, etc.
I still hope that in the future, the Virtue theme stops aligning captions to the left.
KathyForum: Themes and Templates
In reply to: [Virtue] Image Captions always Left AlignedHello Hannah,
Forcing all captions to center is not a solution for us. The standard WP Image Block has a control for selecting left, center, or right alignment. My clients for their website and I for my website want this control to work so we can choose the appropriate alignment for captions depending on a page or post’s design.
When I switch to a different theme (2022), the alignment control for the Image Block works properly. It is only when I revert to Virtue or Virtue-Child that the captions (and probably the images themselves) are forced to the left. Virtue-child has no php or css to affect images or captions on pages other than Home.
Thank you,
KathyForum: Themes and Templates
In reply to: [Virtue] Image Captions always Left AlignedThanks for getting back to me on this.
– Captions are left-aligned even when using Virtue Parent theme.
– Custom functions are limited to unsetting a bunch of Woo fields in the Checkout form.
– CSS is minimal, mostly stuff for specific items and locations. I can’t find anything that should affect alignment of captions on Posts and Archives such as here: https://www.haitiapgrandi.org/category/agronomy/There is this, which ended up centering all captions in the main content area of the home page, but not on other pages:
/*Center captions for Our Key Iniatives on Home page*/
.homecontent .wp-block-columns figcaption {
text-align: center;
}Here is the entire css file below in case you want to see it:
………………………………………………………./*Improve spacing for Headers and Paragraphs*/ h2 { margin: 4px, 0, 20px; } /*Center captions for Our Key Iniatives on Home page*/ .homecontent .wp-block-columns figcaption { text-align: center; } /*Set font size for text at bottom of page (about our charity) */ .footercredits p { font-size: 14px; text-align: left; } /*Set font and alignment for the sidebar link to our Privacy Policy page */ .privacy { font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; text-align: left; } /*Set font for post titles in Latest Posts block*/ .wp-block-latest-posts li > a { font-size: 36px; line-height: 36px; font-weight: 700; margin-top: 1em; margin-bottom: 4px; /*text-decoration: underline;*/ } /*Set font sizes and boldness for drop-down sub-menu items. Main menu items are styled * in the Theme Options panel.*/ #nav-main ul li .sf-dropdown-menu li a { font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-size: 14px; font-weight: 600; } /*Style web links*/ #content a:link { text-decoration: underline; } #content a:visited { text-decoration: underline; } #content a:hover { text-decoration: underline; } #content a:active { text-decoration: underline; } /*Style the Category Filters*/ .hapg-category-filter .cat-item, .hapg-category-filter .cat-item-all { display: list-item; list-style-type: square; } /*Adjust positioning of the Donate buttons so they are horizontally centered and not too * close to items above or below. */ .loan-button { margin-bottom: 5rem; } /*Tidy up how the PayPal Donate button is displayed*/ div.donate-button { position: relative; padding-bottom: 4rem; padding-top: 1rem; } div.donate-button form { margin: 0; position: absolute; left: 50%; margin-right: -50%; transform: translate(-50%, -50%); } div.donate-loan { position: relative } div.donate-loan form { margin: 0; position: absolute; margin-top: 3rem; left: 50%; margin-right: -50%; transform: translate(-50%, -50%); }
Forum: Plugins
In reply to: [The Events Calendar] v5.12.0 pushes my sidebar to the bottomThanks, Marho. I saw in the release notes that there had been a <div> missing from the Subscribe block, which explained the problem perfectly. I installed the new version of the plugin and it works just fine.
I’m resolving this now.Sorry I didn’t get back to you promptly. I’ve been continuing to work on this but didn’t find the true source of the errors and we decided to turn off popups for now. I’m going to enter a new topic for the conflict between The Events Calendar date picker and the Forminator date picker.
Thank you.Forum: Plugins
In reply to: [External Media] What “scopes” do I need for google verificationThank you. I added Drive API. I don’t know if the app is verified because the Submit button doesn’t show up, but I am able to upload photos from Google Drive to Media Library now. Maybe I’m still in Testing status, but it works.
Hi, Thanks for looking into this. Today I can’t replicate “user can’t see or delete photos not shown to public.” Details below, plus a minor new issue.
I tried this just now with my own account. I added more photos until I had 10, which is one more than the 9 we display to the public. As expected, only 9 showed to the public and they were the newest ones. I noticed that if I add multiple photos in a single “Add Photo” action, I can’t control their order within the group of photos added together.
I AM able to see and delete photos from my own gallery using the member-side (front end) user interface, including the older ones not visible to the public. Still cannot delete them from admin-side (back end) interface. My observation last night that members couldn’t delete images from front end was probably wrong, with the additional possibility that I had things in an invalid configuration at the time.
When I deleted a photo of mine in the front end, after confirming the deletion, the screen showed a white popup showing text “Loading icon” in the upper left corner and an X for Close in the upper right. Clicking the x dismissed it. Sometimes that popup appeared immediately and sometimes it waited until I clicked on one of the remaining photos. Dismiss again, click a photo, it pops up again, …, until I refresh the page and it doesn’t come back until I delete another photo.
Best regards,
KathyI forgot to describe what I did for troubleshooting:
– Put the site into WP’s Troubleshooting mode with only User Gallery and UM plugins active. No change.
– Disabled and re-enabled User Gallery. No change.
– Deleted the User Gallery plugin, then downloaded a fresh zip from the plugin site, installed and activated. No change.
UM version 2.1.19, UserGalleryLite 1.0.5.8.1, WP 5.6.3 (waiting for UM:Mailchimp update for WP 5.7.x before I can update WP to 5.7.x.)Hi Patrick,
Thank you very much for the code to catch and display the error. I added it and it prevents non-conforming files from being uploaded.
I’m sorry I didn’t realize that your note about “easy to bypass” was the same thing as my “switch to All-Types files”.
I think we can use the form for now but will be grateful when there is an update with a strong fix. Ideally, if the user can select a non-conforming file from the File-select dialog, they should not be returned to the form until they are shown a warning and given the chance to select a good file or explicitly cancel selecting a file.
Have a good day!Hi Patrick,
Can you give a link to the image from your computer?
Here is the form URL: https://www.pnwglassguild.org/test-form-to-post/
Thank you.Hello Patrick,
Thank you for your message.
1) I know the filter file is working properly as an mu-plugin: It is in the mu-plugins folder under the wp-content directory. Further, I added an echo statement in the function that prints “ECHO” to the display as you can see in this screen image, plus the selected excel file in the upload field, and the Element Inspector view of the html. https://www.pnwglassguild.org/postdata-screenshot/
2) I don’t know what to do with the image in your link https://monosnap.com/file/BnYI1NbthcDVIcM34GzZgOC9gzNbpv. I don’t recognize those files.
3) How do you know it “doesn’t allow me to select the file”? When I fill the form and select an excel file in the postdata upload field, it does not OFFER me any files except images, but I can select All Filetypes from the file-select dialog and it takes the excel file into the postdata filename field. When I submit the form, it shows the Success message. The file is not included in the notification email or the post, but there is no error message. What is the behavior when you select an excel file?
Thanks, –KathyHello Patrick,
I deleted that paste because it showed my email and website addresses and the Pastebin link is exposed in earlier messages above. Is there a secure way I can send you a new link to the current version of the form, or a password to a private Paste, rather than showing it here?
Thanks,
KathyHi Patrick,
I’m sorry I was unresponsive; I was busy launching the site and dealing with other issues.
I took this out of Resolved state because the filter you provided does not prevent spreadsheets, source code, or other files from being selected (not a surprise) and it still allows the submission to proceed and shows user the message for successful submission. No error to user; no error reported in the notification email… no Featured Image and neither submitter or recipient knows there was a problem.
I know that the filter runs because I added an echo statement to display the field ID to verify that the filter is executed.
I tried changing “Multiple” to “single” and also simply removing it because only one file should be accepted for Featured Image. The result in every case was that the PostData field works fine for image files but proceeds with no warning and no file for other filetypes.
We expect this to be a significant problem because many of our users are not experienced with computers and files and they frequently attempt to submit invalid files in other situations where we have working checks and warnings.Hi Patrick,
Thank you for the info on the Feature Image in PostData. My WP limit is large because we need that for internal use. I would really like to set a much smaller limit for user-submitted images, partly because they are often unaware of what size images they have and partly because of the possibility of getting spammed with huge files.Please can you tell me if the **accepted** filetypes that can work for Featured Image in PostData are the same as the “Images” list for the regular File Upload field. It **allows** all the file types I have tried. The File Upload dialog for the Upload button in the PostData field says “All Files (*.*)” and does not warn the user if they submit a type that won’t work. It shows the “submission successful” message. It also does not warn the staff who receives the notification email that an upload was attempted and failed. The Featured Image is just empty in the created post. I sent a 1MB pdf just now, the form submission said it was successful, (no infinite wait), and the Featured Image was empty in the post.
It should not accept filetypes that it can’t handle.It is possible there is a conflict with PopupMaker, but I can’t test without PopupMaker because my Forminator forms are not visible on the website when I place them directly in a post or page. The only way they work is in a popup. The site is live so I’ll have to create a staging site before I do more in-depth testing if that is needed for your investigation.
I have been using the Upload field successfully in the past and do limit the filesize for that field. I am using the Ajax option now. I have no troubles with this field.
Kathy