Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

adding custom url to images in wordpress

Anyone know how to add custom url to images in wordpress? l have tried the wp custom link plugin but it seem to target only gallery bit :(

Stephen O'Connor
Stephen O'Connor
22,291 Points

What is it exactly you're trying to achieve? A bit more info might help us point you in the right direction.

was trying to get the images in my gallery to point to different domains. sorted it now.Thanks guys.

1 Answer

Sander de Wijs
PLUS
Sander de Wijs
Courses Plus Student 22,267 Points

You can add custom links to images in an article. Just select it, go to properties and choose 'custom link'.

Some image links can also be coded into a theme. So if you want to change the default image links outside articles, you will proberaly have to dig into the files located in your theme directory.

l have created a gallery and wanted them all to point to different pages.But sorted it now. Funny thing is l used Yoast SEO to do it lol.