digitalrenewal
Forum Replies Created
-
id love to know the answer to this as well.
Forum: Plugins
In reply to: [Firelight Lightbox] Switch images to ‘Media File’ in bulkI looked at most of the lightbox plugins but didn’t see it. I have it plugged into a simple modal code but here’s just the code for the button. I don’t know if there’s a way to get it on a page with 20 other photos and print the right one.
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('.clickPrint').click(function(e){ e.preventDefault(); var w = window.open(); var print = $('.imgToPrint').html(); w.document.write(print); w.window.print(); w.close(); return false; }); }); </script> <style> img {width:30%} a.printBtn {display:inline-block; background:green; margin-top:10px; padding:10px; border-radius:10px; color:white; text-decoration:none;} </style> <a href="#" class="imgToPrint"> <img src="https://live.staticflickr.com/5204/5329887147_df9eb8f541_z.jpg" width="100%"> </a> <br> <a href="#" class="printBtn clickPrint">Print Me</a>
- This reply was modified 2 years ago by digitalrenewal.
- This reply was modified 2 years ago by digitalrenewal.
Forum: Plugins
In reply to: [Firelight Lightbox] Switch images to ‘Media File’ in bulkoh, that’s smart! I’m glad you found an easy way to fix it. it’s ironic too, I set all of the image sizes to zero because my images are hyper-optimized and WordPress was making them larger. (and I have 10,000 images and don’t want to overload the server)
There’s so much wrong with this site, I’ve finally started to rebuild it from scratch. I’m looking at your plugin again. What I really want is a print button to print each individual image. I thought a lightbox would be the easiest way. Do you think I would be able to append a print button into the fancy box? I have the print code written with a modal but I’m not a good enough coder to get it into wordpress. If I could insert it into a simple lightbox that would be clean and easy ??
Forum: Plugins
In reply to: [Firelight Lightbox] Switch images to ‘Media File’ in bulkI thought that too, that it broke somehow, but then it did fix itself.
Unfortunately, I’ve come to the same conclusion. It will need to be corrected manually. I’m ready for the challenge ?? Many of those images were built into galleries, so it will be easier to switch a whole gallery to the media file than one at a time.Forum: Plugins
In reply to: [Firelight Lightbox] Switch images to ‘Media File’ in bulkIt’s a total mess, I might even just rebuild the darn thing. I started the site before Gutenberg. I uploaded images from inside the post, back then it was using TinyMCE. So those are linked to the media file and should be fine.
I started linking to the attachment in 2019. So that would be with Gutenberg. Later in 2019, something broke. When I uploaded images through the Gutenberg editor. It could not attach images to the post and was writing image links like this: https://mysite.com/?attachment_id=9346. I didn’t notice that for, oh, about 100 posts. So THEN, to get things to link correctly, I had to… create the post. Upload the images through the media library. Attach those images to the newly created post. Then add the images to the post. yeah.
So now there are 3 different ways images are linking on this site. For now, so I don’t anger the Google gods, I’m using Yoast to redirect attachment URLs to the media file. It doesn’t make the plugin work, so I’m sorry I didn’t help you there. If I do find an easier solution than a rebuild, I’ll come back here and let everyone know.
That’s it! It works beautifully. Thank you for such a fast response!
SORRY, I figured it out. I used a plugin for woocommerce called Extra Fees. Did exacty what I wanted it to. thanks again for this gorgeous plugin.
Forum: Plugins
In reply to: [WP Fastest Cache] AutoClear CacheTHANK YOU EMRE! I had no idea what cache timeout meant. All client sites updated and You’re the hero of the day ??
Forum: Fixing WordPress
In reply to: Problems with the Block Galleryhmm, that didn’t work. 2021 theme, all plugins off, switched permalinks to default and back to postname. Post pretty permalinks are working. Attachment pretty permalinks are not.
I noticed also. The image link displays attachment_id=1234. But when I click on it and lands on the attachment page, the URL changes to the pretty link (https://mysite/post/attachmentpage) I’m afraid if I build it one way and it changes to the other, my site will get slapped again when google cant find the links.
Any other ideas?
- This reply was modified 2 years, 11 months ago by digitalrenewal.
Forum: Fixing WordPress
In reply to: Problems with the Block Galleryexcellent. I see how to add to the gallery now. Thanks for showing me where.
I have permalinks set to postname. I tried resetting the permalink structure. I also deleted .htaccess and let it rewrite itself. Still ugly attachment links. Photos used to link with the pretty link a long time ago. I don’t know how it broke.
Also, when I publish a gallery linked to attachment, it still doesn’t link to anything. I can go back in, change it to media. update. change it back to attachment. update. then it finally links. maybe something bigger is broken with attachments?
Forum: Plugins
In reply to: [Regenerate Thumbnails] URLs changed after regeneratingI found a fix programmatically. It will not fix images in the editor, images are still broken in mine. But if you have dozens of broken images and need them back NOW…
add this to your themes functions.php or with a code snippets plugin that does php:function replace_content($content) { $content = preg_replace('/-([^-]*(\d+)x(\d+)\.((?:png|jpeg|jpg|gif|bmp)))"/', '.${4}"', $content); return $content; } add_filter('the_content','replace_content');
Forum: Plugins
In reply to: [Regenerate Thumbnails] URLs changed after regeneratingdid you ever find a fix for this @rabbitskmc?
The same exact thing happened to me. I’m meticulous about my file sizes. I want WordPress to display MY file sizes in galleries and single images in my posts. I tried to fix this by removing multiple thumbnail sizes and then regenerating thumbnails.
Regenerate thumbnails did a wonderful job at removing all the file sizes I don’t need from my server. Now I need to finish the other half. Rewrite the img code on my site. Fix broken image links to be specific.
In my single posts, WordPress is still spitting out code like
<img src=”https://mysite/wp-content/uploads/my-image-816×1024.jpg”
of course, that file’s not there anymore. I don’t want it there. I want to change the html to this: <img src=”https://mysite/wp-content/uploads/my-image.jpg”NOTE: image dimensions are only showing for about half of the images in my posts. I’m not sure why.
I tried a filter to remove thumbnail dimensions from the_content. but it didn’t work.
Does anyone know how to remove image dimensions in bulk so @rabbitskmc and I don’t have to edit hundreds of posts?
- This reply was modified 2 years, 11 months ago by digitalrenewal.
- This reply was modified 2 years, 11 months ago by digitalrenewal.
Forum: Plugins
In reply to: [WP Docs] Can I rearrange folders?I was fearing that if my client wanted a folder moved (above or below in list view or left or right in thumbnail view), I would have to rebuild the entire file structure with dozens of files embedded 2-3 folders deep. So I guess I did mean drag and drop. And that’d be cool. But I didn’t realize it sorted everything in alphabetical order (I had to refresh to see it on the back end). Alphabetical order is just fine. Who can argue with that right? I see the other sorting options in the premium upgrade too. ?? Plus it’s the nicest looking AND easiest file organization plugin out there. Thank you!
Forum: Plugins
In reply to: [WP Fastest Cache] Form Submit Button doesnt workI talked to Elegant Themes and they figured it out… it actually wasn’t a problem with the caching plugin at all. In my case, I had google recaptcha previously set up on the form. I deleted recaptcha from google, but only ‘turned off’ recaptcha on the form. You need to click ‘remove’ recaptcha on the form to delete it. (in case anyone else has this problem)
Thanks for your quick response. We use wp-fastest cache (plus the premium version) on ALL of our client sites. I’ve tested so many speed plugins. Its the ONLY one that can improve google speed test scores to the 90% range. I think I will leave a 5 star review now ??
Forum: Plugins
In reply to: [reGenerate Thumbnails Advanced] Process didnt finishI think that I have this figured out… I tried the original regenerate thumbnails plugin, and that one didn’t complete either.
Then I tried yours, a much better plugin, with much better options, and I highly recommend it. Works great in most cases and I will use it on my other sites. This particular site has 7600 images. I ran it once and it stopped at 28%. Then I ran it on Just the featured images and it worked like a charm.
Since I have so many images, I believe its a script timing issue on my server. This process will take days with so many images and my server will not allow the script to run for that long.
The plugin Ajax Thumbnail Rebuild is working and is a good alternative in this situation. The description explains the exact issue I was having. It runs multiple scripts one after the other so they will not time out. The downside is that the process will not run in the background and you cannot close the window or allow the computer to hibernate. So I’ve been walking on eggshells around my computer until the process finishes – sticky note that says do not close, playing movies while im away so i dont burn images into my screen. Not ideal, But Its working.
Thanks for the quick response! I will definitely use your plugin in the future. It does really work great for regular use.
- This reply was modified 5 years, 2 months ago by digitalrenewal.
- This reply was modified 5 years, 2 months ago by digitalrenewal.