Skip to content

Instantly share code, notes, and snippets.

@sauraMe sauraMe/footer.php Secret
Created Dec 6, 2017

Embed
What would you like to do?
Personalizar el footer de Twenty Sixteen en el child_theme
@sauraMe

This comment has been minimized.

Copy link
Owner Author

commented Dec 6, 2017

  	<div class="site-info">
  		<?php
  			/**
  			 * Fires before the twentysixteen footer text for footer customization.
  			 *
  			 * @since Twenty Sixteen 1.0
  			 */
  			do_action( 'twentysixteen_credits' );
  		?>
  		<span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
  		<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' ); ?></a>
  	</div><!-- .site-info -->
@sauraMe

This comment has been minimized.

Copy link
Owner Author

commented Dec 6, 2017

Quiero cambiar el mensaje al pie de la plantilla room7_child_theme para añadir un enlace al repositorio.
Supongo que la clave está en do_action( 'twentysixteen_credits' );
No tengo idea de cuál es el punto de partida porque soy novato en cuestión de hooks.

@sauraMe

This comment has been minimized.

@pepesaura

This comment has been minimized.

Copy link

commented Dec 10, 2017

function r8_cambia_creditos() {
	echo "Nuevo crédito";
}
add_action('twentysixteen_credits', 'r8_cambia_creditos');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.