My Account Menu – Supreme Theme

This topic contains 6 replies, has 3 voices, and was last updated by  Alex Rollin 6 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #413901
    #413905

    Silks
    Full Member
    Post count: 305

    My site is POI Australia

    #413907

    Kor
    Moderator
    Post count: 16516

    Hi Silks,

    Accordingly to the error (Cannot redeclare sd_add_my_account_link() (previously declared in /home/poiaustraliacom/public_html/wp-content/themes/supreme-directory/functions.php:223), it is trying to tell you that you already had this same function in the theme’s functions.php file. Did you remove it from the functions.php file before activating it in Code snippet?

    If you’re not sure, share WP temp admin access to your site and we’ll see what we can do to help. You can post the details here using the private reply option below.

    Thanks!

    #413912

    Silks
    Full Member
    Post count: 305

    Hey Kor,

    I assumed that was the issue but I was concerned that if i deleted it from functions.php and an update was released for supreme theme then it would cause a conflict then at the time of the update..

    Is this likely to be an issue??

    Thanks

    #413944

    Alex Rollin
    Moderator
    Post count: 27815

    Why would there be a conflict in the case of an update?

    That does not seem like an issue, no.

    For future reference, ‘there can be only one’ function with a name, so, sounds like this is sorted?

    Let us know if there’s more!

    #414132

    Silks
    Full Member
    Post count: 305

    I thought it might be an issue because that function is part of the standard install of supreme theme therefore if i delete it from functions.php it will reappear if the theme was updated. Then the function would appear in code snippets plugin and functions.php.

    From what I understand supreme theme is a child theme therefore you can’t make a child theme of a child theme and that is the reason for using code snippets plugin. So my understanding is that supreme theme can be updated and when it is functions.php will be updated adding the code i have previously deleted which means there would be 2 copies of the same code.

    If that is not the case then that is fine but i just wanted to confirm to be on the safe side

    Thanks

    #414139

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    best practice is to name new functions with a different name.

    Yes, you should use code snippets, yes if you update supreme it will be overwritten.

    If you need help with your customization you should contact a developer:

    https://geodirectoryexperts.com

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount