[Resolved] Menu in Copyright-Footer

Home Forums Support [Resolved] Menu in Copyright-Footer

Home Forums Support Menu in Copyright-Footer

  • This topic has 2 replies, 2 voices, and was last updated 5 years ago by Yannick.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #232176
    Yannick

    Hi,
    I would like to add a “terms of use” menu\link on the right side of the Copyright-Footer.
    Any ideas how to do this?

    Also I would like to choose the color of the text and the color when it’s hovered. This should be possible under “customise” > “colours” > “footer” once I am able to put a menu down there, or?

    Thank you for your help ๐Ÿ™‚

    #232284
    Lyle

    Hi Yannick,

    You can add the required HTML directly into the Copyright text box in Customizer > Copyright if you are using the Copyright Add on or the GP Premium add ons. For example:

    Copyright %copy% %current_year% <a href="http://yourdomain.com"> Your Site Name</a> | <a href="http://yourdomain.com/terms-and-conditions/">Terms and Conditions</a> | <a href="http://yourdomain.com/privacy-policy/">Privacy Policy</a>

    If you are not using the add on(s), then you can do so with the following PHP:

    add_action('after_setup_theme','generate_copyright_remove_default_message');
    function generate_copyright_remove_default_message()
    {
    		
    	remove_action( 'generate_credits', 'generate_add_footer_info' );
    	remove_action( 'generate_copyright_line','generate_add_login_attribution' );
    }
    
    /**
     * Add the custom copyright
     * @since 0.1
     */
    add_action('generate_credits','generate_copyright_add_custom_message');
    function generate_copyright_add_custom_message()
    {
    ?>
    	Copyright &copy; <?php echo date("Y") ?> <a href="http://yourdomain.com"> Your Site Name</a> | <a href="http://yourdomain.com/terms-and-conditions/">Terms and Conditions</a> | <a href="http://yourdomain.com/privacy-policy/">Privacy Policy</a>
    <?php
    }

    See this link for adding PHP:

    https://generatepress.com/knowledgebase/adding-php-functions/

    Then as you say, you will be able to style the text color and hover color in Customize > Colors > Footer

    Cheers!
    Lyle

    http://snifflevalve.com
    Tutorials and tips for GeneratePress, WP Show Posts, WordPress and Elementor

    #232375
    Yannick

    Perfect, thank you Lyle!! ๐Ÿ™‚

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