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
#2
Thanks for the tip!
Reply




Users browsing this thread: 1 Guest(s)