Skip to content

Instantly share code, notes, and snippets.

@sauraMe
Created December 6, 2017 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sauraMe/9bc520f809cf85e29d3df61a2a16160b to your computer and use it in GitHub Desktop.
Save sauraMe/9bc520f809cf85e29d3df61a2a16160b to your computer and use it in GitHub Desktop.
Personalizar el footer de Twenty Sixteen en el child_theme
@sauraMe
Copy link
Author

sauraMe 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
Copy link
Author

sauraMe 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
Copy link
Author

sauraMe commented Dec 6, 2017

@pepesaura
Copy link

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