class inside of php
-
Hi I am new to PHP and I need a basic help. I have a block statement which defines all titles as <h2>. I don’t want the title on Home page to be <h2>. How do I do that. Here’s the code:
<h2><?php if (is_page('Home')) { echo "Minty's News"; } else if (is_page('Contact')) { echo "Contact - Tel: +44(0)203 2397692 Mob: +44(0)7989 194003 email: [email protected]"; } else if (is_page('Guest Book')) { echo "How was it for you?"; } else { echo "";the_title(''); } ?></h2>
Thanks
And how do I define a class inside of the code.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘class inside of php’ is closed to new replies.