Site logo

[Resolved] Changing Sites Domain Name

Home Forums Support [Resolved] Changing Sites Domain Name

Home Forums Support Changing Sites Domain Name

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #2443277
    Dan King

    Hi

    I’m trying to change the sites domain name but in general settings it’s greyed out?

    WordPress Address (URL)

    Site Address (URL)

    Thanks as always,

    Dan

    #2443374
    Leo
    Staff
    Customer Support

    Hi Dan,

    Not sure if I fully understand.

    GP (or any themes) does not have any control over the URL side of things.

    Let me know if I’m missing something here 🙂

    #2443387
    Dan King

    Yes you’re supposed to edit the function.php file but when I download that there’s a message from Generate Press saying do not edit this file…

    Thanks Dan

    #2443391
    Leo
    Staff
    Customer Support

    You are definitely not supposed to edit function.php.

    The theme really has nothing to do with the URL – it doesn’t know what URL it is attached too.

    Are you having any specific issues after changing the Domain name?

    #2444348
    Dan King

    Hi

    Yes it should be really easy to do… but in WordPress it’s greyed out:

    https://www.loom.com/share/2ca94321653047c4828094e19cd32a94

    Thanks as always for your help and support.. life savers!

    Dan 🙏

    #2444352
    Dan King

    I did change the fucntion.php file and now i am getting this error message…

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Learn more about troubleshooting WordPress.

    whoops!

    #2444363
    Dan King

    Can i reinstall the theme to fix it?

    https://www.loom.com/share/2c9942a988524c17abf35aa061d1eaae

    Sorry about this…

    Dan

    #2444412
    Dan King

    I deleted the theme and reinstalled in and i am still getting the error message…

    What have I done? 😭

    Dan

    #2444456
    Dan King

    Okay so I have deactivated all my plugins and it’s the woocommerce plugin that is causing the issue… sorry this is probably now way out of your remit.. i’ll try and figure it out myself – but just incase you have a simple fix:

    https://www.loom.com/share/98267c5069564805be4248b17721d441

    #2444490
    David
    Staff
    Customer Support

    Greyed out site urls generally mean they have been hard coded in your wp-config.php or another plugin has changed them.

    If the site is returning critical error when enabling a plugin like Woocommerce then remove any custom snippets you have added to the site and disable any Woo related functions in a GP Element.

    #2444529
    Dan King

    Hi David,

    Gosh what an idiot.. i’ve deactivated custom snippets, and GP element…

    https://www.loom.com/share/6772a26075c9421691da534ca1e2d401

    But it’s still causing an error…

    Grrrrr shoot me.

    Dan

    #2444700
    David
    Staff
    Customer Support

    The Woo products are saved in your database, so check with Woocommerece as you should be able to re-install the plugin without affecting that.

    Also try disabling the GeneratePress Elements module in case there is some rouge code in an element.

    Worse case scenario – ask your Host to install a backup before the issue occurred…. and then stop editing functions.php anywhere 🙂

    #2446535
    Dan King

    Omg I fixed it… i even found the functions.php file i thought i edited but i hadn’t? lol

    It was the woocommerce payments plugin… thanks for your help it’s incredibly comforting to know i have someone to ask… so thank you!

    Oh and i now have a staging site and have the site backed up! LOL

    Dan

    #2446576
    David
    Staff
    Customer Support

    Awesome – glad to hear you found the issue 🙂 And please stop editing functions.php unless its the one in your child theme lol

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