Assign page name as ID to the BODY
-
The question:
How do I retrieve and assign the page name to a PHP variable?
—————————————————————–
The purpose:
<?php
$pageName = ?????
?>
<body id=”<?php echo $pageName ?>”>
—————————————————————–
I’ve found threads on this subject explaining how to assign body id
based on pages id’s, categories etc. but none based on page name.
TIA
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Assign page name as ID to the BODY’ is closed to new replies.