![]() |
Wordpresss modification question
When I add media I have the option to link the attachment to a variety of options (custom url, media file, that type of thing) but where in the WP back end can I find the code that controls this? I want to make it so that clicking on the image opens in a new window.
Cheers |
on mine when you add the custom url, it has a box to check for either new window or same page....
|
Quote:
|
yep, you're right...i see now.
|
You used to be able to do this by clicking on the image in "Edit Media" and then clicking on the "Advanced Settings" and clicking a box for Target - Open in a New Window. But I don't see this feature w/ the new WP update that changed image handling. I think it can be done for galleries using NextGen Gallery plugin.
The coding issue would be that the images set in each post are specific content to each post as far as how I understand WP. So maybe Fris or someone else can advise you the code to insert to loop thru the posts, use regex to grab the images and code them to open t\ blank ??? :helpme |
Quote:
http://wordpress.org/extend/plugins/...-custom-links/ |
I don't think that'll work.
I really did think it would just be a simple line modification in one of the files? |
Do you want all pics to act like this, if so why not just use a lightbox?
|
Quote:
anyway, you could also use http://wordpress.org/extend/plugins/...window-plugin/ |
Quote:
Quote:
|
Code:
<?php |
TARGET="_blank"
|
Quote:
|
you can make it default to the url of the image
Code:
add_filter( 'attachment_link', 'direct_image_urls_for_galleries', 10, 2 ); |
All times are GMT -7. The time now is 07:37 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc