How creating a seprate front page template and get a current active theme path in drupal?

Hello Everyone!
Hope you are doing well.
1.How creating a seprate front page template :

Creating a front page template is rather simple. In your theme folder (sites/all/themes/), copy the page.tpl.php file from drupal core or your parent theme. Then rename it accordingly (see below). You probably won’t see the results until you clear your cache; so make sure to do that.

Drupal 7
In Drupal 7, copy the page.tpl.php file and name it page--front.tpl.php.

Drupal 6
In Drupal 6, copy the page.tpl.php file and name it page-front.tpl.php

2.How get a current active theme path :

For get a current active theme path in drupal always use php variable $directory

<?php print $directory; ?>

<img src="<?php print $directory; ?>/images/yourimage.gif" />

Enjoy post!

3 Replies to “How creating a seprate front page template and get a current active theme path in drupal?”

  1. Fantastic humans speeches and toasts, possibly toasts. are hands down transferred at some time through party and expected to turn into extremely funny, amusing not to mention educational inside the mean time. finest man wedding speeches

  2. Excellent blog you have here.. It’s hard to find good quality
    writing like yours these days. I honestly appreciate individuals like you!
    Take care!!

Leave a Reply

Your email address will not be published. Required fields are marked *