Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identify index page
#1
Very easy, for beginners like me:

To identify the start page, use this php code in your template:

Code:
if(return_page_slug() == "index" ) {
  // do something or not
}


PS: I came across this easy solution by checking the default theme "Innovation" where the breadcrumbs are hidden by CSS from the index page (see also header.inc.php there). I thought it is better not to show them at all...
Reply


Messages In This Thread
Identify index page - by echteinfachtv - 2012-01-02, 03:20:25
Identify index page - by polyfragmented - 2012-01-06, 00:22:26



Users browsing this thread: 1 Guest(s)