'Archives' ) ) : return get_the_archive_title(); endif; } } /*-----------------------------------------------------------------------------------*/ /* IS SINGLE */ /*-----------------------------------------------------------------------------------*/ if (!function_exists('alhenalite_is_single')) { function alhenalite_is_single() { if ( is_single() || is_page() ) : return true; endif; } } /*-----------------------------------------------------------------------------------*/ /* Default menu */ /*-----------------------------------------------------------------------------------*/ function alhenalite_add_menuclass( $ulclass ) { return preg_replace( '/
' . $content . ' ' . __( "Read More","alhenalite") . '
'; } /*-----------------------------------------------------------------------------------*/ /* Remove category list rel */ /*-----------------------------------------------------------------------------------*/ function alhenalite_remove_category_list_rel($output) { $output = str_replace('rel="category"', '', $output); return $output; } add_filter('wp_list_categories', 'alhenalite_remove_category_list_rel'); add_filter('the_category', 'alhenalite_remove_category_list_rel'); /*-----------------------------------------------------------------------------------*/ /* Remove thumbnail dimensions */ /*-----------------------------------------------------------------------------------*/ function alhenalite_remove_thumbnail_dimensions( $html, $post_id, $post_image_id ) { $html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html ); return $html; } add_filter( 'post_thumbnail_html', 'alhenalite_remove_thumbnail_dimensions', 10, 3 ); /*-----------------------------------------------------------------------------------*/ /* Remove css gallery */ /*-----------------------------------------------------------------------------------*/ function alhenalite_my_gallery_style() { return "