Okay, I'll start off by saying this: in my "tpl_main_page.php" file, I've edited the <body> line so it looks like this:
Code:
if($current_page_base == 'index' and $_GET['main_page'] == 'index' and $current_category_id=='') { ?>
<body id="index">
<?php } else if ($current_page_base == 'page') { ?>
<body id="page">
<?php } else if ($current_page_base == 'login' or $current_page_base == 'account' or $current_page_base == 'account_edit' or $current_page_base == 'address_book' or $current_page_base == 'account_password' or $current_page_base == 'account_newsletters' or $current_page_base == 'account_notifications' or $current_page_base == 'time_out' or $current_page_base == 'logoff') { ?>
<body id="account">
<?php } else { ?>
<body id="category<?php echo $current_category_id; ?>">
<?php } ?>
Now, the point of this is so that when certain pages are viewed, it gives the body a different ID tag (or styling purposes - I can style each page individually if I need to with this tag). So, for example, my category 15 page shows up with <body id="category15">, my ezpages show up with <body id="page"> and so on. It's very helpful for the site I'm working on.
However, now I'm running into an itsy-bitsy issue. On site pages that *aren't* in any category, and *aren't* pages, they all have "category0" for the body ID. (So, all of my "checkout" pages are <body id="category0">, for example. However, there are a couple of pages that aren't in categories, are not EZ-Pages and are not checkout pages (for example, my 404 page).
Let's go with the 404 page. So I want *that* page to be styled a little bit differently, however, I don't know how to edit the above code to reflect that. Would anyone know what "if" statement I need to add in up there to get my 404 page to have a different body ID? I don't quite know what these pages qualify as so I can put the proper stuff in there to make it recognize that page.
Thanks for any help :)
Bookmarks