Solved: 6 Years, 8 Months, 3 Weeks ago check if the current page is Home Page
#1
Solved: 6 Years, 8 Months, 3 Weeks ago
hi, 

i want to know if is it possible to check if the current page is the Home Page.

for example i want to add code to header template to check this condition and if the condition is true then display a message like "yeah this is the home page"

thanks
Reply
#2
Solved: 6 Years, 8 Months, 3 Weeks ago
by home page if you mean index of the forum then with template conditionals plugin you can use code like below
<if THIS_SCRIPT == "index.php" then>required content</if> 
Reply
#3
Solved: 6 Years, 8 Months, 3 Weeks ago
yes, this one is OK!!

thanks!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)