Skip to content
Skip to content

Remove lightbox link in post title and link to single post

If you want to have only the image link to a lightbox, and not also the title, follow these steps:

1. in WP Admin, go to Themify > General

2. paste the following in the Header Code text area


<script>
jQuery(document).ready(function($){
	$('.post-title a').each(function(){
		var $self = $(this),
		    $article = $self.closest('article'),
		    post_id = $article.attr('id');
		$self.removeClass('themify_lightbox');
		$self.attr( 'href', 'http://'+document.domain + '/?p=' + post_id.replace('post-', '') );
	});
});
</script>

3. save the change and check the site.

Note that this will only work for top level domains.

NEW: Themify has been redesigned. Please comment your feedback.