redone75
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Installing WordPress
In reply to: Move site to new URL on the same server.Well, I figured out a solution. Not the ideal way I mentioned above, but a rather quick switch.
- Logged into wordpress admin (sitename.net).
- Go to the Administration > Settings > General panel.
In the box for WordPress address (URI): change the address to the sitename.com
In the box for Blog address (URI): change the address to the sitename.com - Click Save Settings.
- Renamed “sitename.net” directory to “sitename.com”
- Logged into PHPmyAdmin
- Changed Siteurl & Homeurl
UPDATE wp_options SET option_value = replace(option_value, 'http://sitename.net','http://sitename.com') WHERE option_name = 'home' OR option_name = 'siteurl'; - Changed GUID
UPDATE wp_posts SET guid = REPLACE (guid, 'http://sitename.net','http://sitename.com'); - Change URL in Content
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://sitename.net','http://sitename.com');
SQL help from this post: http://www.tipstechtricks.com/2010/05/13-wordpress-sql-queries-to-know.html
Forum: Fixing WordPress
In reply to: Home main nav not highlighted as current – using home.phpI’m using a band-aid fix while I try to figure out what’s causing this. If anyone’s interested, here’s what I did.
Since I’m already using jquery on the homepage and throughout the site, I tapped into it to solve the issue visually by placing the following code after the main nav:
<?php if (is_home()){ echo '<script> $("#menu-main-menu li:contains(\'Home\')").addClass("current_page_item"); </script>'; } ?>
Viewing 2 replies - 1 through 2 (of 2 total)