diff --git a/style.css b/style.css index d382edf..11e6994 100755 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ Author: Evan Mullins Author URI: https://circlecube.com Template: twentynineteen - Version: 1.13.4 + Version: 1.13.5 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: wasmo @@ -1195,6 +1195,7 @@ div.lwa-modal-overlay div.lwa-modal-popup { width: 100%; } +/* Home */ .home .entry-content h4 { margin-top: 4rem; } @@ -1360,6 +1361,13 @@ div.lwa-modal-overlay div.lwa-modal-popup { display: block; } +.entry .entry-content .question_anchor { + font-size: 1rem; + text-decoration: none; + display: inline-block; + vertical-align: sub; +} + .entry-description.has-regular-font-size { font-size: 1em; font-weight: normal; @@ -1442,4 +1450,21 @@ figure.wp-block-image.aligncenter { } figure.wp-block-image.aligncenter img { margin: 0 auto; +} +.entry .entry-content > *.aligncenter { + margin-left: auto !important; + margin-right: auto !important; +} +.entry .entry-content > *.aligncenter img { + margin: 0 auto; +} + +/* crop long links in lists */ +.entry-content ul li > a { + word-wrap: break-word; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + max-width: 100%; + display: inherit; } \ No newline at end of file diff --git a/taxonomy-question.php b/taxonomy-question.php index f34df18..ddad110 100755 --- a/taxonomy-question.php +++ b/taxonomy-question.php @@ -75,8 +75,9 @@ if ( false === ( $the_answers = get_transient( $transient_name ) ) ) { ) { $username = esc_html( $user->nickname ); $the_answers .= ''; - $the_answers .= ''; - $the_answers .= ''; + $the_answers .= ''; $the_answers .= wasmo_get_user_image( $userid ); $the_answers .= ''; $the_answers .= '' . $username . ''; diff --git a/template-parts/content/content-user.php b/template-parts/content/content-user.php index b82616d..ec04256 100755 --- a/template-parts/content/content-user.php +++ b/template-parts/content/content-user.php @@ -148,8 +148,11 @@ if( have_rows( 'questions', 'user_' . $userid ) ): $answer = get_sub_field( 'answer', 'users_' . $userid ); if ( $termtaxid && $answer ) { $questionterm = get_term( $termtaxid, 'question' ); + $anchor = "Link to this answer of '" . wp_kses_post( $questionterm->name ) . "' by " . $curauth->display_name; $description = "See more answers about '" . wp_kses_post( $questionterm->name ) . "'"; - echo '

'; + echo '

'; + echo ''; + echo '#' . $anchor . ' '; echo wp_kses_post( $questionterm->name ); echo ' '; echo wasmo_get_icon_svg( 'link', 20 ); @@ -176,7 +179,6 @@ if ( user_login ); ?> - user_login ); ?>