Support » Themes and Templates » different body_class output between localhost and online

  • Hi all,

    It’s not a major problem, but for some reason I’m getting different outputs from the body_class function between my localhost (XAMPP) and online. For example the same page is ‘page-id-14’ on localhost and ‘page-id-12’ online. I’m using the Starkers theme, and the page is http://www.babelfishlanguageschool.com/courses/

    I guess it’s a different PHP configuration or something. Has anyone had this before and know of a fix?

    For the minute I have two style sheets and its a little awkward.

    Thanks,

    Geoff

Viewing 3 replies - 1 through 3 (of 3 total)
  • Chip Bennett

    (@chipbennett)

    Theme Review Admin

    Are you using exactly the same database between the two sites?

    The difference is that on your XAMPP install, the Page in question has an ID of 14, while on your webhost, the Page in question has an ID of 12.

    The $page->ID comes from the database table.

    esmi

    (@esmi)

    Forum Moderator

    For example the same page is ‘page-id-14’ on localhost and ‘page-id-12’ online.

    That makes perfect sense to me. You simply created the pages in a different order on your local server compared to your remote server.

    Of course! [slaps forehead]

    Thanks for your help guys!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘different body_class output between localhost and online’ is closed to new replies.