Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › "Share This Article" at top of post
New Landing › How can we help? › Themeforest Theme Support › Dante › "Share This Article" at top of post
- This topic has 3 replies, 2 voices, and was last updated 9 years by Mohammad – SUPPORT.
Viewing 4 posts - 1 through 4 (of 4 total)
-
Posted in: Dante
-
March 11, 2015 at 7:31 pm #156644
I like the “share this article” feature that is at the bottom of every post. Is it possible to move this to the top of the post so that it is more visible?
March 12, 2015 at 6:25 am #156727Hi,
Please open to edit single.php file of theme.Find this code, select and cut from here:- <?php if ($show_social) { ?> <div class="share-links curved-bar-styling clearfix"> <div class="share-text"><?php _e("Share this article:", "swiftframework"); ?></div> <ul class="social-icons"> <li class="sf-love"> <div class="comments-likes"> <?php if (function_exists( 'lip_love_it_link' )) { echo lip_love_it_link(get_the_ID(), '<i class="ss-heart"></i>', '<i class="ss-heart"></i>', false); } ?> </div> </li> <li class="facebook"><a href="https://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>" class="post_share_facebook" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=220,width=600');return false;"><i class="fa-facebook"></i><i class="fa-facebook"></i></a></li> <li class="twitter"><a href="https://twitter.com/share?url=<?php the_permalink(); ?>&text=<?php echo urlencode(get_the_title()); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=260,width=600');return false;" class="product_share_twitter"><i class="fa-twitter"></i><i class="fa-twitter"></i></a></li> <li class="googleplus"><a href="https://plus.google.com/share?url=<?php the_permalink(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa-google-plus"></i><i class="fa-google-plus"></i></a></li> <li class="pinterest"><a href="https://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php if(function_exists('the_post_thumbnail')) echo wp_get_attachment_url(get_post_thumbnail_id()); ?>&description=<?php echo get_the_title(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=320,width=600');return false;"><i class="fa-pinterest"></i><i class="fa-pinterest"></i></a></li> <li class="linkedin"><a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php echo get_the_title(); ?>&summary=<?php echo strip_tags(sf_excerpt(20)); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=320,width=600');return false;"><i class="fa-linkedin"></i><i class="fa-linkedin"></i></a></li> <li class="mail"><a href="mailto:?subject=<?php the_title(); ?>&body=<?php echo strip_tags(sf_excerpt(20)); ?> <?php htmlentities(the_permalink()); ?>" class="product_share_email"><i class="ss-mail"></i><i class="ss-mail"></i></a></li> </ul> </div> <?php } ?> Now paste this code just after this code:- <div class="page-content clearfix"> <?php } ?>
Thanks
MohammadApril 1, 2015 at 6:04 pm #162674Thanks so much!
April 2, 2015 at 2:40 am #162723Hi,
You most welcome.
Thanks
Mohammad -
Posted in: Dante
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in and have valid license to reply to this topic.