Hi,
can you help me to fix the GENERAL MODAL IMAGE as I have to add the class manually as it’s net being added automatically when the GENERAL MODAL IMAGE is enabled.
I use a RSS aggregation on my website where it downloads images to my server but none of the newly downloaded images get the image CSS Class (td-modal-image) for some reason.
Thanks in advance
Hello Bogdan,
I am sorry for such a dely. I was on long vacation and it took me couple of weeks to get back on truck.
I kinda thought that this is the reason why it’s not working, however, I would like to ask for your opinion if there is anything what could be done from your side in order to automatically add the class to any imported image what comes with the feed.
Thank you in advance
Hello,
Unfortunately the lightbox will not work with images that are provided externally. The lightbox requires the images to be present in the media library and the link for the images to be linked to the image file itself. Otherwise the lightbox will provide a cannot load image message. We do not recommend using the lightbox with external images.
Thank you!
Hello,
well, every single image is being downloaded to my server while importing posts to my site and it’s definitely present in the media library. If I manually switch on the Modal Image and just change from “link to – none” to “link to – Image URL” it works just fine. I think it’s not working even if I upload an image to the media library and attach it to a post manually anyway.
I was thinking if I should create a separated topic or just to ask you here. It’s something what’s actually related to the post feeding on my website so I’ll ask you here anyway as we already started this discussion.
Please let me know if it’s better to compose new separate topic in such case.
It’s about the post source name and the post source URL. I currently use these available fields in post settings to display the article’s source name including the URL but I have to do it manually each time I am editing the post which can be kind of time consuming. I am trying to get those fields filled in automatically with correct data because what I am trying to achieve here is to auto publish imported posts as soon as they are being downloaded to my site.
At the moment, all the posts that are being imported to my site must have the pending review or draft status in order to edit them before I can actually publish them with the correct source name and URL, however, that way I am loosing the date and time from the feed which is being imported and also my precious time which could be used elsewhere.
I know this is not the Newspaper’s Theme issue but I would appreciate any kind of hint or suggestion from you.
Thank you in advance
Hello,
The lighbox feature needs the images to link to the image file as described here: https://forum.tagdiv.com/modal-window/
As for the second request, it’s recommended to create a new topic for each ‘major’ one. There isn’t a guide line but it’s preferred for the topic not to get too long as searching users have to scroll through a lot to get to the reply they are looking for.
As for the source issue, our theme via and source were not created with this in mind. In fact our theme was not created with this in mind as we created the theme with the idea that users would create new posts directly into wordpress, not pull content from an external source. Sorry but there is no simple solution to get the source to fill in automatically. You will have to hire a developer to help out with the modification.
Thank you!
Hi,
I understand what you mean regrading my second query.
However, I still don’t understand how I can achieve the lightbox to work on my site if I have it enabled in global settings and when I upload an image to my post manually I still have to edit the image and turn the Modal Image On and select the media link manually 🙁
I am not sure if I understand what it’s said here
Global settings
The modal can be enabled globally from Theme Panel -> Post Settings. The modal will apply to all post images, so you won’t have to go on each post to set them individually. If this feature is disabled, the individual imaged settings are applied.
Please explain
Thank you Bogdan
If you apply the modal image globally, it will affect all of the images at once. You still have to edit each individual one and make it link to the media file if this is not the default implementation. This is not so frustrating when you create the post from scratch but when you import it, then it gets frustrating to go in and edit all the posts. This is why I mentioned our theme was not built to facilitate importing posts and images. We built the theme with creating content in mind. Creating content means going in and taking your time on each post to set it up properly. Our theme has no automatic option to set all images to link to the media file. It can activate the lighbox for all images but the link is not handled by the theme.
Thank you!
Hi,
so if I understand this correctly the Global modal settings is there for nothing, because if I make the post from scratch and I actually upload images manually like I did in this example/test
https://marketonchart.com/uncategorized/test-post/27/02/2017/
the modal image is still off and I have to do it all manually anyway.
Check this screenshot I made after adding the image to the test post above and publishing it.
Then I checked if the global modal image settings was applied by going to see the post from the front end and then I went back in order to see the settings of that image from within the post. See the attachment.
https://1drv.ms/f/s!AkIZ0iKtBNnXl5Roh6G7lXVwfRYTEw
Maybe I am missing something or don’t just understand what it’s said down here below.
GENERAL MODAL IMAGE
Enable or disable general modal image viewer over all post images, so you won’t have to go on each post to set them individually.
Consider that disabling this feature, the individual settings of an image post are applied.
Thank you
Hello,
The option is not there for nothing. If the option did nothing, then it would have been for nothing but since it has a functionality, it;ls not nothing. Your images need to be linked to the media file. That is the requirement for the modal image and is specified here: https://forum.tagdiv.com/modal-window/ If you do not agree with this implementation then simply disable the lightbox. There are lighbox plugins you can use that can provide other functionality as you require.
Thank you!
hello Bogdan,
I don’t think that this is a good solution if the “Global settings” is enabled and I still have to do it manually when creating new posts from scratch by hand… maybe I misunderstand what is down below.
The modal can be enabled globally from Theme Panel -> Post Settings. The modal will apply to all post images, so you won’t have to go on each post to set them individually. If this feature is disabled, the individual imaged settings are applied.
I understand what you have explained to me earlier above about imported posts with images which are BTW stored on my server. I kinda assume that when the Global settings is applied, it should at least work with manually created posts with images or am I really missing something?
How do I actually make the images to be linked to the media file automatically? Is it some sort of WordPress bug or I have miss-configured my media library somehow?
I am working on a modification from other Plugin to actually allow authors to publish their articles from the front-end with images. At this moment, they are only able to upload a Featured Image. I am just wondering if this is considered as a similar situation with importing posts with images from external sources and basically the lightbox won’t work as well.
I like Newspaper’s lightbox and I’d like to get it working at least with manually created posts either from front-end or back-end.
Any kind of suggestion or hint will be appreciated. I have tried other amazing lightbox plugin I purchased long time ago, however, I decided to use Newspaper’s light box as it has the lightbox built-in, light weight and good looking too. I would prefer to get it working somehow. It’s not that priority as it’s not possible to get it working with imported posts but I’d like to see it at least working with manually created posts, if you know what I mean.
Thanks again for your time reading my looooong messages 😀
Take it easy
Hello,
The default implementation of wordpress is to link to images to the media file which is exactly what the lightbox needs, but your images were not added in the default way and so their links are different from the default. You will have to search for a wordpress solution of changing the links on all images from your media library. For example: https://wpsites.net/wordpress-tips/5-ways-to-change-default-image-links/
Our lightbox will work if you use the standard way of creating a post but you are not using a standard implementation. Try to create a new post from the back-end using the wordpress settings not a front-end publishing post and add images that link to the media file. hen the lightbox works as expected.
Thank you!
Hi Bogdan,
unfortunately it’s still not working.
I have made some changes thanks to your hint above. However, that option didn’t work well so I used
one of the methods found here https://core.trac.wordpress.org/ticket/35101
So I pasted this php code below to my child-theme function.php file and it seems to make my newly images point to the media link as you can see on the screenshot here https://1drv.ms/i/s!AkIZ0iKtBNnXmdlLTUt0Wu5r-E3hdg
add_action( 'after_setup_theme', 'default_attachment_display_settings' );
function default_attachment_display_settings() {
update_option( 'image_default_align', 'none' );
update_option( 'image_default_link_type', 'file' );
}
So I think there is a deeper issue I am having with Newspaper light box when enabled globally as I thought of in the first place.
Please have a look and let me know what else to try in order to get this working
Thank you
Ok,
Please contact us via email at contact@tagdiv.com and provide a link to your site and wp-admin so we can login and investigate if there is any issue at all with the lightbox. We will not be able to help you with the custom implementation you seek but we will run a test on your site and see if the lightbox will work in the correct parameters.
Please also include a link to this topic so we can identify you.
Thank you!
Hi,
I don’t get it. I tested it after I have added that snippet to my function.php and I saw that the newly added images are already pointing to the file URL but when I clicked at the image from the front-end, it just opened it in new tab but this time I tested it again and it just works as intended.
Thanks for showing me the right path to take in order to fix the issue which was in the image default link type.
You can close this thread now.
Thank you very much again
Hey. After last update, the error of leading the images appeared, even if the image is loaded from wordpress and directed to the image file as required. Any update on this?
Hi,
We have identified an issue that happens when the general modal image setting is active, in the theme panel. That is the one causing it, disabling it solves the problem.
This issue and some others that were reported and acknowledged are investigated as we speak and will be fixed. When they are them update will be released.
Thank you!