theme issue

Posted in: Newsmag
Post count: 18

Hello, I tried to change my site url using functions.php file and wp-config.php file, now my site does not display the body, only header and footer, I can’t even login to my dashboard!
What did I mess up? here is my site; http://qrackmedia.com
thank you/!

Post count: 9544

You likely need to be more specific on what you were trying to do, exactly.

Did you change your website URL, and then move the theme files from one site to another… or ?

Usually best to do clean install on new domain, then import the dbase from old site to new; then edit the dbase to search/replace instances of old domain name with new domain name (URL).

In face, we did this recently with the “DUPLICATOR” plugin which does most of it for you automatically!

If you’re talking about changing “permalinks” that is done via the WP admin panel, not in functions or wp-config.

  • This reply was modified 10 years by simchris.
Post count: 18

I was not changing perma-links, I was changing the site url and I had to use functions.php file because I couldn’t change it from the dashboard settings, so when I added these lines
update_option(‘siteurl’,’http://qrackmedia.com’);
update_option(‘home’,’http://qrackmedia.com’);
I lost access to my admin panel and my site is no-longer displaying correctly! and even when I erase them there is no change!
The site url has not changed either! my domain “http://qrackmedia.com” is still redirecting to my External IP.
I wonder what the problem is??!

Post count: 9544

Well, the theme and WP don’t control your domain name/URL.

You should try using DUPLICATOR to move from old domain to new one.

This is not theme related; you should try getting the site working at new URL with the default theme FIRST, then get the new location working with this theme.

FYI
https://codex.wordpress.org/Moving_WordPress

https://codex.wordpress.org/Changing_The_Site_URL

———–
Typically to change a site URL
you need to
a) setup new domain/hosting
b) setup testing version of WP at new location
c) at your domain registrar, point domain name at new IP for new site
d) setup redirect on old domain to redirect to new domain
e) if moving existing site and not using DUPLICATOR, you will likely need to go into the phpmyadmin and do search/replace in your MySQL dbase to replace instances in the post meta of oldsitename.vvv to newsitename.vvv for things like embedded images

Many tutorials online on how to do this.

Theme does not control changing domains or hosting in any way.

Best to do your move with default theme; then switch to this theme.

Your hosting provider can likely also help with this.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.