• Resolved xs650

    (@xs650)


    While trying to migrate a WP site to a new host, I’ve noticed the body_class() is acting the same on the new site as the previous one.

    The biggest part being that the page templates are being placed in the body_class().

    So comparing the same page
    OLD ONE
    <body class=”page page-id-47 page-child parent-pageid-16 page-template page-template-default”>

    NEW ONE
    <body class=”single postid-47″>

    Looking at the admin section for both has the pages looking the same.

    They are different versions of WP, the new one is 3.1, the old one… something old

    Any ideas to get all the body_class() info back?

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Ten theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress.

    Thread Starter xs650

    (@xs650)

    Yep, it was plugin related
    I turned them all off and body_class() started behaving

    After a plugin by plugin check, I found it was
    Gravity Forms Version 1.0.1 | By rocketgenius

    The site uses the plugin, so I will resolve the issue with them and post back here the results for the next person.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page templates not working with body_class() after migrating site’ is closed to new replies.