Se solicita Implementar Botones "Compartir" en Página web (Wordpress)

Estado

🔒 Este tema está cerrado para nuevas respuestas.

⏰ Solo el creador del tema puede solicitar la reapertura de sus propios temas, pero únicamente dentro de los 60 días previos a la última actualización.

JotaCB Seguir

Gamma
Verificación en dos pasos desactivada
Verificado por Whatsapp
Desde
3 Abr 2013
Mensajes
266
Porcentaje - 100%
18   0   0
Buenas, quiero poner en las entradas de mi sitio: MiraTU.es - Conoce mucho más (Theme Sahifa)

Unos botones de compartir como los que tienen Upsocl y otras webs virales. Yo no tengo mucha idea de código y no logro hacerlo de ninguna forma.

Los logos para compartir que quiero serían como los que utiliza Upsocl en sus entradas: Upsocl | Cosas que inspiran, cosas que intrigan, y las cosas que deberÃ*an ser vistas.

Yo ya los he alojado y subido:

Twitter: http://miratu.es/wp-content/uploads/2014/08/tw.png
Facebook: http://miratu.es/wp-content/uploads/2014/08/face.png

Yo lo tengo actualmente así: Lo que pasa con tu CARA cuando te pones PROTECTOR SOLAR te podrÃ*a sorprender. Lo hizo con esta gente.

Y me gustaría que quedaran en mi página de la siguiente manera:

Arriba: http://i.imgur.com/0FH8jWV.jpg
Abajo: http://i.imgur.com/qAuOSTY.jpg

Dejo mi Single.php, qué es el código sobre el que me parece que hay que aplicar los cambios:

PHP:
<?php get_header(); ?>

	<div class="content">
		<?php tie_breadcrumbs() ?>
		
	
		<?php if ( ! have_posts() ) : ?>
		<div id="post-0" class="post not-found post-listing">
			<h1 class="post-title"><?php _e( 'Not Found', 'tie' ); ?></h1>
			<div class="entry">
				<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'tie' ); ?></p>
				<?php get_search_form(); ?>
			</div>
		</div>
		<?php endif; ?>

		<?php while ( have_posts() ) : the_post(); ?>
		
		<?php $get_meta = get_post_custom($post->ID);
			if( !empty( $get_meta['tie_review_position'][0] ) ){
				$review_position = $get_meta['tie_review_position'][0] ;
				$rv = $tie_reviews_attr;
			}
			
			$post_width = $get_meta["tie_sidebar_pos"][0];
			if( $post_width == 'full' ) $content_width = 955;
		?>
		
		<?php //Above Post Banner
		if(  empty( $get_meta["tie_hide_above"][0] ) ){
			if( !empty( $get_meta["tie_banner_above"][0] ) ) echo '<div class="ads-post">' .htmlspecialchars_decode($get_meta["tie_banner_above"][0]) .'</div>';
			else tie_banner('banner_above' , '<div class="ads-post">' , '</div>' );
		}
		?>
				
		<article <?php if( !empty( $rv['review'] ) ) echo $rv['review']; post_class('post-listing'); ?>>
			<?php get_template_part( 'includes/post-head' ); ?>

			<div class="post-inner">
				<h1 class="name post-title entry-title" itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing"><span itemprop="name"><?php the_title(); ?></span></h1>

				<?php get_template_part( 'includes/post-meta' ); ?>

				<div class="entry">
					<?php if( ( tie_get_option( 'share_post_top' ) &&  empty( $get_meta["tie_hide_share"][0] ) ) || $get_meta["tie_hide_share"][0] == 'no' ) get_template_part( 'includes/post-share' ); // Get Share Button template ?>
					<?php if( !empty( $review_position ) && ( $review_position == 'top' || $review_position == 'both'  ) ) echo tie_get_review('review-top'); ?>

					<?php the_content(); ?>
					<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'tie' ), 'after' => '</div>' ) ); ?>
					
					<?php if( !empty( $review_position ) && ( $review_position == 'bottom' || $review_position == 'both' ) ) echo tie_get_review('review-bottom'); ?>

					<?php edit_post_link( __( 'Edit', 'tie' ), '<span class="edit-link">', '</span>' ); ?>
				</div><!-- .entry /-->
				<?php the_tags( '<span style="display:none">',' ', '</span>'); ?>
				<span style="display:none" class="updated"><?php the_time( 'Y-m-d' ); ?></span>
				<?php if ( get_the_author_meta( 'google' ) ){ ?>
				<div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person"><strong class="fn" itemprop="name"><a href="<?php the_author_meta( 'google' ); ?>?rel=author">+<?php echo get_the_author(); ?></a></strong></div>
				<?php }else{ ?>
				<div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person"><strong class="fn" itemprop="name"><?php the_author_posts_link(); ?></strong></div>
				<?php } ?>
				
				<?php if( ( tie_get_option( 'share_post' ) &&  empty( $get_meta["tie_hide_share"][0] ) ) || $get_meta["tie_hide_share"][0] == 'no' ) get_template_part( 'includes/post-share' ); // Get Share Button template ?>

			</div><!-- .post-inner -->
		</article><!-- .post-listing -->
		<?php if( tie_get_option( 'post_tags' ) ) the_tags( '<p class="post-tag">'.__( 'Tagged with: ', 'tie' )  ,' ', '</p>'); ?>

		
		<?php //Below Post Banner
		if( empty( $get_meta["tie_hide_below"][0] ) ){
			if( !empty( $get_meta["tie_banner_below"][0] ) ) echo '<div class="ads-post">' .htmlspecialchars_decode($get_meta["tie_banner_below"][0]) .'</div>';
			else tie_banner('banner_below' , '<div class="ads-post">' , '</div>' );
		}
		?>
		
		<?php if( ( tie_get_option( 'post_authorbio' ) && empty( $get_meta["tie_hide_author"][0] ) ) || ( isset( $get_meta["tie_hide_related"][0] ) && $get_meta["tie_hide_author"][0] == 'no' ) ): ?>		
		<section id="author-box">
			<div class="block-head">
				<h3><?php _e( 'About', 'tie' ) ?> <?php the_author() ?> </h3><div class="stripe-line"></div>
			</div>
			<div class="post-listing">
				<?php tie_author_box() ?>
			</div>
		</section><!-- #author-box -->
		<?php endif; ?>
		
		
		<?php if( tie_get_option( 'post_nav' ) ): ?>				
		<div class="post-navigation">
			<div class="post-previous"><?php previous_post_link( '%link', '<span>'. __( 'Previous:', 'tie' ).'</span> %title' ); ?></div>
			<div class="post-next"><?php next_post_link( '%link', '<span>'. __( 'Next:', 'tie' ).'</span> %title' ); ?></div>
		</div><!-- .post-navigation -->
		<?php endif; ?>
	
		<?php get_template_part( 'includes/post-related' ); ?>

		<?php endwhile;?>

		<?php comments_template( '', true ); ?>
	</div><!-- .content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
 

Jaison Mora

Zeta
Verificado
Verificación en dos pasos desactivada
Verificado por Whatsapp
Desde
16 Nov 2013
Mensajes
1.586
Porcentaje - 98.3%
114   2   0
[MENTION=42441]JotaCB[/MENTION] Yo te ayudo de gratis eso es facil :encouragement:
 

capone2

Iota
Social Media
Verificación en dos pasos activada
Desde
19 Ago 2013
Mensajes
2.012
Porcentaje - 100%
225   0   0
Te recomiendo usar el plugin shareaholic, he probado varios botones llamativos sin tener muchos resultados, pero el plugin shareaholic es una auténtica maravilla.
 
Estado

🔒 Este tema está cerrado para nuevas respuestas.

⏰ Solo el creador del tema puede solicitar la reapertura de sus propios temas, pero únicamente dentro de los 60 días previos a la última actualización.

Arriba