Closed dziudek closed 11 years ago
Solution for the filters.php file:
/**
*
* Function used in the attachment page image links
*
* @return the additional class in the links
*
**/
function gavern_img_link_class( $link )
{
$class = 'next_image_link' === current_filter() ? 'next' : 'prev';
return str_replace( '<a ', '<a class="btn nav-'.$class.'"', $link );
}
add_filter( 'previous_image_link', 'gavern_img_link_class' );
add_filter( 'next_image_link', 'gavern_img_link_class' );
Like here: http://wordpress.stackexchange.com/questions/77296/adding-class-to-next-prev-image-link-in-attachment-php