[Support request] Web design signature

Home Forums Support [Support request] Web design signature

Home Forums Support Web design signature

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #958510
    Jagoba

    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?

    #958564
    Leo
    Staff
    Customer Support

    Hi there,

    This should help for both questions:
    https://docs.generatepress.com/article/changing-the-copyright-message/

    Let me know 馃檪

    #970290
    Jagoba

    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&#8221; 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”?

    #970336
    Leo
    Staff
    Customer Support

    Instead of using the function, what if you just use our copyright add-on in the customizer?
    https://www.screencast.com/t/lPHnICx5x1

    #970876
    Jagoba

    I need use in the code. Any way to solve that problem?

    #971282
    Tom
    Lead Developer
    Lead Developer

    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 馃檪

    #971432
    Jagoba

    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
    }

    #971641
    Tom
    Lead Developer
    Lead Developer

    What about it isn’t working? Are you getting a specific error?

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.