• I have a child functions.php, and I have tried a 20 line chunk of code that someone provided in a previous thread and I had the correct opening <?php tag and everything and when I add my new credits and save and upload to my server. I get a blank error page saying something wrong with line 20 of the code but all thats on line 20 is a “}” closing bracket. All i want to do is edit the credits without having to purchase anything.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gratschultz2013

    (@gratschultz2013)

    below is the code i am using in my functions.php and it literally is not working as i am getting a blank page after ftp’ing to my server

    <?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()
    {
    ?>
    Your new message in here

    }

    Hey there gratschultz2013,

    How are you doing today?

    Please try replacing the code with this one:

    <?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()
    {
    ?>
    Your new message in here
    <?php
    }

    This should fix the issue and display your custom copyright.

    Hope this helps ??

    Cheers,
    Bojan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Edit credits from GeneratePress Theme’ is closed to new replies.