Fixes descripton text on share url for twitter.

This commit is contained in:
mateuswetah 2020-04-03 14:14:23 -03:00
parent 35479d994d
commit 294c7bea87
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ echo '</style>';
<?php endif; ?>
<?php if ( true == get_theme_mod( 'tainacan_twitter_share', true ) && get_theme_mod( 'tainacan_twitter_user' ) ) : ?>
<div class="rotater">
<a href="http://twitter.com/share?url=<?php echo esc_url( home_url( $wp->request ) ); ?>&amp;text=<?php the_title_attribute(); ?>&amp;via=<?php echo esc_attr( get_theme_mod( 'tainacan_twitter_user', '' ) ); ?>" target="_blank">
<a href="http://twitter.com/share?url=<?php echo esc_url( home_url( $wp->request ) ); ?>&amp;text=<?php tainacan_the_collection_name(); ?>&amp;via=<?php echo esc_attr( get_theme_mod( 'tainacan_twitter_user', '' ) ); ?>" target="_blank">
<div class="btn btn-icon">
<i class="tainacan-icon tainacan-icon-twitter"></i>
</div>