Differences Between 2 WordPress Installations using Same Theme

I have two sites, both using the same code and same version of WordPress (3.6.1). The site theme is based heavily on the Reverie Foundation theme using Foundation 4.0.

(BETA Site) http://tallistowp.betaforming.com/features/

(LIVE Site) http://www.tallisto.com/features/

The main navigation is hard coded:

<li><a href="/features/"<?php if ($url_folder == "features") { echo ' class="current"';} ?> >Features</a></li>
<li><a href="/news/"<?php if ($url_folder == "news") { echo ' class="current"';} ?> >News</a></li>
<li><a href="/blog/"<?php if ($url_folder == "blog") { echo ' class="current"';} ?> >Blog</a></li>
<li><a href="/about/"<?php if ($url_folder == "about") { echo ' class="current"';} ?> >About</a></li>
<li><a href="/contact/"<?php if ($url_folder == "contact") { echo ' class="current"';} ?> >Contact</a></li>
<li><a href="/join/"<?php if ($url_folder == "join") { echo ' class="current-signup"';} ?> class="subscribe-button">Signup</a></li>
<li><a href="https://app.tallisto.com/login.php" class="login-button">Login</a>

Using this code to determine the "current" page to apply active page styling.

// get folder name for active navigation styling
$url_folder = substr(substr($_SERVER["REQUEST_URI"],1), 0, strpos(substr($_SERVER["REQUEST_URI"],1), "/"));

On the BETA site, it does work as long as the trailing slash is on the link. If I remove it, I loose the $url_folder variable and the "current" class isn't set.

On the LIVE site, the trailing slash is getting automatically removed for some reason, but it doesn't work either way.

Another oddity that escapes me is the BETA site is rendering bigger all around than the LIVE site. It's like the LIVE site is getting scaled down about 5-10%.


Seems likely that if the trailing slash is being removed on live but not beta, then the .htaccess files aren't the same on each site. For me, the slash isn't being removed on either, and the navigation is highlighting fine.

If the site is scaling down on one server, I suspect that you've inadvertently zoomed out at some point, and your browser is remembering the change. Try visiting each, and pressing CTRL and '=' at the same time to reset these - works for most browsers.

Similar questions

What are the differences between "Latest Posts" and "Static Page"?
WordPress has an option to pick "Latest Posts" and "Static Page" under "Settings" in Admin Panel. My questions: I just don't get these two options :) Can someone provide me some guidance or resources where I could find out more about it?
What are the differences between WPINC and ABSPATH?
It's common for plugin developers to protect their plugins from direct access. I saw two ways to do that: and What are the differences between WPINC and ABSPATH? Which one is the 'right' way to do it?
From a developer's point of view what are the differences between pages and posts?
Whenever I am looking for information on how to handle pages, I always end up finding deprecated functions that link to the correct new functions. But those new functions are only documented in terms of how they work for manipulating posts. I have seen this page: http://en.support.wordpress.com/post-vs-page/ but it is not very helpful when I am loo...
differences between behavior get_option vs get_site_option in multisite
I am converting a bunch of sites to multisite and I am confused about the behavior differences between get_option and get_site_option. It appears that get_site_option actually means "get_network_wide_option" and get_option means "get_option_for_this_site", and the same for the update versions. Given this, if a plugin wants to have discrete settings...
Differences between wpdb->get_results() and wpdb->query()
Who can explain me the differences between wpdb->get_results() and wpdb->query() in making generic queries to wordpress db?
Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?
The WordPress multisite feature offers two different installation modes: subdomain and subdirectory install. By default both modes allow to manage separate WordPress instances (sites) within one installation and within one primary domain. The obvious difference is the URL schema for all sites (in the example multisite.tld is the primary doman): Sin...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.