Customize footer

Homepage Community Forums Epik Theme Support Customize footer

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14676
    designkombinat
    Customer

      I try to customize my footer with the snippet below, but when I use it in Toolbox, it breaks my site (i.e. white screen):

      /* Customize the entire footer */
      add_filter( 'genesis_footer_creds_text', 'sp_footer_creds_text' );
      function sp_footer_creds_text() {
      	echo '<div class="creds"><p>';
      	echo 'Copyright &copy; 2014-';
      	echo date('Y');
      	echo ' <a href="http://mydomain.com">mydomain.com</a> &middot; <a href="http://mydomain.com/imprint">Imprint</a>;
      	echo '</p></div>';
      }
      #14694
      Eric
      Customer

        There is an error in your code somewhere so that’s why that is happening. Try and re-copy it from SP and add it to your site. Once you see that the default code is working, then go in and change the text. Just be careful not to change or remove any of the important parts of the code. –

        Example –

        //* Customize the entire footer
        remove_action( 'genesis_footer', 'genesis_do_footer' );
        add_action( 'genesis_footer', 'sp_custom_footer' );
        function sp_custom_footer() {
        	?>
        	<p>&copy; Copyright 2012 <a href="http://mydomain.com/">My Domain</a> &middot; All Rights Reserved &middot; Powered by <a href="http://wordpress.org/">WordPress</a> &middot; <a href="http://mydomain.com/wp-admin">Admin</a></p>
        	<?php
        }

        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

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