WordPress.org

Support

Support » Themes and Templates » [Resolved] Undefined Variable

[Resolved] Undefined Variable

  • Hey guys, I’m creating a theme and have debug turned on.

    I added: <?php body_class($class); ?> to my <body>

    Now I’m getting this Notice on every page. Anything I can do to remove the notice?

    Notice: Undefined variable: class in /Users/bdbolin/Desktop/MAMP/wp-content/themes/Oasis/index.php on line 2
    class="page page-id-174 page-parent page-template-default">

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Undefined Variable’ is closed to new replies.