When clicking on images in my posts it takes me to the attachment post of the image. From there I have to click the image again to get the full size. Instead I want to go directly to the full size image in uploads. Is there a function that will do that?
In the Media Upload, if you choose "File URL", it will link to the full-sized image.
If you want this to be the default behavior, you can either by changing the options directly in the dashboard, or by adding some code to your theme.
To do it by changing the option in the dashboard, visit this link for instructions:
http://blog.aizatto.com/2010/05/04/changing-default-wordpress-media-link-url/
To do it by adding some code to your theme, check out this article:
http://andrewnorcross.com/tutorials/functions-file/stop-hyperlinking-images/
Related
guys I want to send some photos to my friend but when I want copy specific photo URL from gallery, so I can copy just gallery URL no photo. Is there any way to change it to see URL for photo ? I attach some photos for better explain.
I tried to change permalinks in settings and also watched in gallery, but in gallery are no settings. But I found that gallery is using ModuloBox.
This is how is URL in gallery preview
Here you can see that URL is same like in gallery
And this is what I need (watch URL)
There is a share option in the top right of your gallery which generates a link for you:
https://www.flyingslovak.eu/galleries/slovakia/?guid=photography_gallery_5273&mid=8
Have you tried to open the image you want in the slider, then right clicking on the large image and choosing 'Open image on a new tab'? Not quite sure thats the right wording, but it is something like that.
In the new tab you get the URL for the image - something like www.example.eu/wp-content/uploads/2019/01/01.jpg
I have successfully uploaded an image in folder application/uploads codeigniter. When I'm trying to display the image in an <img> tag its not showing. I've checked the path is correct and the image does exist.
Just hit that image src link on browser and check whether image is displaying or not. You can upload your images in assets folder. Call your image by using url https://yoururl.com/assets/imgfolder/img.jpg . It should display. Hope this will help you.
Can you show us the tag you are using with the path. If you believe the path is correct, can you type this path straight into your browser and see the image displayed? You can do a 'view source' to get the path if you are using Codeigniter base_url or similar.
(sorry to post this as an answer but my rep isn't high enough to allow commenting)
click on "product image", you can see image ,image will expand with original size [lightbox image]
I want to restrict that lightbox image size to 1200 in product view page in magento.
please see below media.phtml file
media.phtml file = http://pastebin.com/8yaDrs8Q
help me to restrict the lightbox image size for 1200.
let me know if you need any clarifications,
thanks in advance,....
Image size has been taken through css and js file not from media.phtml.
You should change lightbox.js. Above given link clearly suggest you how to do it. If you don't want to make any changes than just follow below steps.
Just replace your lightbox.js with LightboxXL.js and css file also.
This script has built in image resize function. Download LightboxXL.js from here-->> http://www.ramirezcobos.com/labs/lightboxxl-for-prototype/
I have created a gallery in a WordPress post using WordPress's native media gallery and it shows me the images as gallery thumbnails in rows and columns which is exactly what I want.
But when I click on any of the thumbnail it opens the direct image link. I want that the image should be shown in my blogs environment. I would actually want it to show on the same page itself. but if not that I don't want it to open as a direct image. Is there a template file or something I could make for opening those images. I think image.php, but I have no idea how to go about it.
Help..?
Thanks
When you're inserting a gallery into your post, you can select how to link to the images. See screenshot: http://cl.ly/2yYA
Just select 'attachment page' and you'll get an individual page with commenting for that photo. Is that what you were looking for? You can edit the template of that page using attachment.php.
I am not sure if Wordpress has API to upload file but what I am looking for is very simple:
Context: I have another plugin that I need to modify so that user can upload file in the Admin area of that plugin
Solution:
1. Rewrite a new upload thru some specific path. This has nothing to do with Wordpress. I am fine doing this.
2. I prefer to use existing Media upload feature or some Wordpress upload API. I read this post but it was problematic because I want to change the text title of "Insert to Post" to "Finish Upload".
http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/
Can anyone help? Prefer to go with #2 but just need to change the text. How do I change it when it is a fanbox appearing when image button is clicked? And the "Insert to Post" doesn't come out until the image is done uploading. The issue is how to trigger a function to change that text when fancybox is shown and image uploading completed!!?
I put Post id into url and it solves problem