TemplateToaster
Website Builder | Since 2009
Home
Features
Download
Help
Forum
Support
Documentation
Purchase
Overview
Demo
Screenshots
Free Templates
Blog
Login
Login
Register
TemplateToaster Forum
All Activity
Questions
Unanswered
Tags
Ask a Question
TemplateToaster
Ask a Question
Slideshow only on frontpage
asked
May 28, 2015
in
Drupal Themes
by
eldoradomedia
(
120
points)
Hi!
Is there any way to put the slideshow
only
on Drupal's frontpage? Maybe someone has an idea about how to change a page template in Drupal?
Thanks!
Please
log in
or
register
to answer this question.
1
Answer
answered
Jun 13, 2015
by
lisa-west
(
35.1k
points)
Yes, by editing the page.tpl.php file of the theme, it is possible. Just place the slideshow code inside the check, which checks if page is the drupal front page.
commented
Oct 20, 2015
by
robbiemc
(
100
points)
Hi
Is it possible you can give me the code for this?
Robbie
commented
Nov 6, 2015
by
robbiemc
(
100
points)
Hi All...the support team gave me the code for this as per below;
The following code is to be inserted in to the page.tpl.php file of your theme;
<?php if(drupal_is_front_page()) { ?>
above the start of the slideshow code <div class="ttr_banner_slideshow"> (row 626 on my theme but I imagine each one is different)
You then need to add
<?php }?>
at the end of the code for the slideshow (row 907 for my theme) before the next element which in my case is a container <div id="ttr_page" class="container">
Hope this helps...!!!
Please
log in
or
register
to add a comment.
Interested in localizing/Translating TemplateToaster Software in your native language in exchange of a Pro License ?
Contact Us
Categories
All categories
Wordpress Themes
(661)
Joomla Templates
(688)
Magento Themes
(28)
Drupal Themes
(55)
HTML Website
(141)
Issues/Bugs
(291)
New Features Discussion
(191)
General Discussion
(323)
Translation/Localization
(6)
...