V2 Help With Copyright Footer Getting error using snip using supreme theme

This topic contains 3 replies, has 2 voices, and was last updated by  Kor 4 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #530374

    Will
    Full Member
    Post count: 79

    Hello, I am using the snip plugin with no success. I am getting the following error on line 9

    Don’t Panic
    The code snippet you are trying to save produced a fatal error on line 9:

    syntax error, unexpected ‘2018’ (T_LNUMBER), expecting ‘,’ or ‘;’
    The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.

    Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.

    I am using this snip code

    add_action(‘after_setup_theme’, ‘_my_sd_footer_changes’,15);
    function _my_sd_footer_changes(){
    remove_action( ‘dt_footer_copyright’, ‘dt_footer_copyright_default’, 10 );
    remove_action( ‘dt_footer_copyright’, ‘sd_footer_copyright_default’, 10 );
    add_action( ‘dt_footer_copyright’, ‘custom_dt_footer_copyright_text’, 10 );
    }

    function custom_dt_footer_copyright_text(){
    echo ‘© 2018 Supreme Theme LLC. All Rights Reserved.’;
    }

    #530375

    Will
    Full Member
    Post count: 79

    Cancel This request.. I got it figured out 🙂

    #530376

    Will
    Full Member
    Post count: 79

    This worked

    add_action(‘after_setup_theme’, ‘_my_sd_footer_changes’,15);
    function _my_sd_footer_changes(){
    remove_action( ‘dt_footer_copyright’, ‘dt_footer_copyright_default’, 10 );
    remove_action( ‘dt_footer_copyright’, ‘sd_footer_copyright_default’, 10 );
    add_action( ‘dt_footer_copyright’, ‘custom_dt_footer_copyright_text’, 10 );
    }

    function custom_dt_footer_copyright_text(){
    echo ‘© 2020 whateveryouwanttosay ‘;
    }

    #530379

    Kor
    Moderator
    Post count: 16516

    Hi Will,

    Thanks for letting us know. Have a nice day!

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket