From 915851057dab54e076e0bac2092b0f02f40d2cae Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 10 Nov 2020 17:15:15 -0300 Subject: [PATCH] Attachments label break-word instead o break-all. --- src/assets/scss/_post.scss | 4 ++-- src/template-parts/headertaxonomy.php | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/assets/scss/_post.scss b/src/assets/scss/_post.scss index b22d960..9ce3e3d 100644 --- a/src/assets/scss/_post.scss +++ b/src/assets/scss/_post.scss @@ -748,7 +748,7 @@ display: inline-block; vertical-align: top; cursor: pointer; - word-break: break-all; + word-break: break-word; font-size: 0.875em; padding: 0 14px; @@ -772,7 +772,7 @@ display: inline-block; font-size: 0.875rem; text-align: center; - word-break: break-all; + word-break: break-word; line-height: 1.5rem } a, diff --git a/src/template-parts/headertaxonomy.php b/src/template-parts/headertaxonomy.php index bc11e4d..0a2ed49 100644 --- a/src/template-parts/headertaxonomy.php +++ b/src/template-parts/headertaxonomy.php @@ -4,9 +4,11 @@ } '; -$current_term = tainacan_get_term(); -$current_taxonomy = get_taxonomy( $current_term->taxonomy ); -$current_term = \Tainacan\Repositories\Terms::get_instance()->fetch($current_term->term_id, $current_term->taxonomy); +$current_wpterm = tainacan_get_term(); + +$current_taxonomy = get_taxonomy( $current_wpterm->taxonomy ); +$current_term = \Tainacan\Repositories\Terms::get_instance()->fetch($current_wpterm->term_id, $current_wpterm->taxonomy); + $image = $current_term->get_header_image_id(); $src = wp_get_attachment_image_src($image, 'full'); ?> @@ -31,11 +33,10 @@ $src = wp_get_attachment_image_src($image, 'full'); -
- - + +