Homepage › Community Forums › Epik Theme Support › Portfolio: unlink photo/post title
Tagged: portfolio
Hi guys as I said, I’m using the portfolio feature to showcase logos of clients. I don’t want to explain what each project is about this time, I want to keep it simple and that’s why I want to prevent people from clicking on the logo or post title:
Is there any way to do so, to make it non-clickable? (and maybe in the future revert it?)
[Options like redirecting image or post/title to clients url would also be great. I found this in other themes’ portfolios and it gives you tons of possibilities to showcase your work. Just a suggestion.]
Thanks!
e.
(I tried adding a redirect url to clients url and it worked but yet people can click on the image and take them to my ’empty post’. I have browsed Studiopress forum already for this. By the way it’s terribly hard to navigate through information at that forum…someone should tell them! :))
If you want to remove the link around the image you can go into your page_portfolio.php file and look for this exact code –
/**
* Adds Featured Image and links it to the Post
*
* @author Wes Straham
* @since 1.0.0
*/
add_action( 'genesis_before_post_content', 'epik_portfolio_do_post_image' );
function epik_portfolio_do_post_image() {
$img = genesis_get_image( array( 'format' => 'html', 'size' => 'portfolio-thumbnail', 'attr' => array( 'class' => 'alignnone post-image' ) ) ); printf( '<a href="%s" title="%s" rel="nofollow">%s</a>', get_permalink(), the_title_attribute('echo=0'), $img );
}
….and replace that code with this –
(hit reload if the github code doesn’t show)
I’m not sure how to remove the link around the titles. I do know how to remove the titles all together, but not sure how to remove the links and keep the titles in this situation…
This portfolio was designed to be simple, which is why you don’t see too many options. I didn’t want to add too much code inside the theme to avoid it from becoming “bloated”. It’s usually best to make these types of things into plugins rather than including them in a theme. I include them in my themes as a start, but when users need more options, I always recommend that they search WordPress.org for a plugin that can handle what they’re looking for since there are a lot of portfolio plugins out there. However, this portfolio is perfect for those that need something simple.
So if you need a portfolio with more options, I would definitely recommend searching WordPress.org for something better.
I have browsed Studiopress forum already for this. By the way it鈥檚 terribly hard to navigate through information at that forum鈥omeone should tell them!
There are a lot of people who have said the exact same thing! – http://www.studiopress.com/forums/forum/suggestions/
This was their old forum – http://www.studiopress.com/support/ (much much better IMO). You can still search this forum, you just can’t post on it. Lots of value here, it’s definitely a great resource that even I use myself sometimes.
Their new forum is the same as this forum, it’s just organized differently. Like thousands of other users, I really think they should go back to the old forum. Especially if most of the customers keep suggesting and complaining about the switch. It’s about the customers and what they want IMO. Other than that one little thing, StudioPress is great.
Hi Wes
– Thanks! It works: now image doesn’t link to post 馃檪
– What I did is to use the custom redirect url below post to add the client url, this way if people click on the title, it’ll redirect them 301 to client’s web.
– I’m really liking so far the Genesis + Epik theme experience but imho they should offer better communication channels with their community and customers. I have worked in the knowledge management sector and that forum is the opposite to any best practice ever 馃榾
Well, thanks! You can close this thread 馃槈
You’re Welcome!