Re: Question on conditional statement
- From: "rf" <rf@xxxxxxxxxxx>
- Date: Thu, 27 Nov 2008 11:31:25 GMT
<sheldonlg> wrote in message
news:MpCdncmETK_cHrPUnZ2dnUVZ_rDinZ2d@xxxxxxxxxxxxxxx
Tim Roberts wrote:
rbaulbin@xxxxxxxxxxx wrote:
If anyone could field the following question, I'd greatly appreciate
it:
This seems to be a simple question, but for some reason it's not
working in the code I'm working with...
I'm very new to PHP...
I'd like to simply test whether or not the current web page is the
home page, and then execute one line of code, such as <div
class=class1>; if not, execute <div class=class2>. I've tried various
incarnations of is_home(), but the page displays nothing. Can anyone
shoot me some code that will work? :)
What, precisely, do you mean by "home page"? In my view, a "home page"
is
the default page for a site, so you'd just put your line of code in
"index.php".
I think he means the home page for the browser, not the site.
It's a google grouper. I don't think we will ever find out.
.
- References:
- Question on conditional statement
- From: rbaulbin
- Re: Question on conditional statement
- From: Tim Roberts
- Re: Question on conditional statement
- From: sheldonlg
- Question on conditional statement
- Prev by Date: Re: Question on conditional statement
- Next by Date: Re: Get result from Google search
- Previous by thread: Re: Question on conditional statement
- Next by thread: Re: Question on conditional statement
- Index(es):
Relevant Pages
|