Created
September 22, 2015 19:56
-
-
Save davechu/8d351636ebe6ab9fc28a to your computer and use it in GitHub Desktop.
When you make a child theme of Auberge, you can use this code in your functions.php to remove the links from Featured Images on pages. If this sounds scary, ask a developer to do it. :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wmhook_entry_image_link', 'dc_remove_featured_link' ); | |
function dc_remove_featured_link ( $link ) { | |
$link = ''; | |
return $link; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note! Oliver, the awesome developer of Auberge, pointed out that there's a more precise bit of code for doing this only on single Posts. http://support.webmandesign.eu/forums/topic/display-after-2nd-click-in-portfolio-item/#post-10249