Archived topic
Web design signature
7 replies · Started by Jagoba on July 15, 2019
Hi there,
We would like put in the footer our signature but ...
1) Where and how is the best way?
2) How can we set the year to update automatically every year?
Hi there,
This should help for both questions:
https://docs.generatepress.com/article/changing-the-copyright-message/
Let me know :)
In the functions.php I insert this:
add_filter( 'generate_copyright','tu_custom_copyright' );
function tu_custom_copyright() {
?>
<p style="text-align: center"><span style="color: #ffffff">xxxxxxxx %copy%%current_year% · TODOS
LOS DERECHOS RESERVADOS · </span> <span style="color: #ffffff"><a style="color: #ffffff"
href="https://www.ideandoazul.com" target="_blank">DISEÑO WEB POR IDEANDOAZUL.COM</span></p>
<?php
}
but looks like
"xxxxxxxx %copy%%current_year% · TODOS LOS DERECHOS RESERVADOS · DISEÑO WEB POR IDEANDOAZUL.COM"
How can I insert correctly "copy" and "current year"?
Instead of using the function, what if you just use our copyright add-on in the customizer?
https://www.screencast.com/t/lPHnICx5x1
I need use in the code. Any way to solve that problem?
Try this:
add_filter( 'generate_copyright', function tu_custom_copyright() {
?>
<p style="text-align: center"><span style="color: #ffffff">xxxxxxxx © <?php the_date( 'Y' ); ?> · TODOS
LOS DERECHOS RESERVADOS · </span> <span style="color: #ffffff"><a style="color: #ffffff"
href="https://www.ideandoazul.com" target="_blank">DISEÑO WEB POR IDEANDOAZUL.COM</span></p>
<?php
} );
Let me know :)
Thanks so much Tom but something in your code is wrong.
With that is working:
add_filter( 'generate_copyright','tu_custom_copyright' );
function tu_custom_copyright() {
?>
<p style="text-align: center"><span style="color: #ffffff">xxxxxxxx © <?php the_date( 'Y' ); ?> · TODOS LOS DERECHOS RESERVADOS · </span> <span style="color: #ffffff">DISEÑO WEB POR IDEANDOAZUL.COM</span></p>
<?php
}
What about it isn't working? Are you getting a specific error?