Site logo

Archived topic

Web design signature

7 replies · Started by Jagoba on July 15, 2019

Viewing posts 1–8 of 8

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?

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"?

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 &copy; <?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?

This archived topic is closed to new replies.