Search code examples
phptwitter-bootstraptemplatesdrupal-7

My custom template for my content type won't work in Drupal 7 - Bootstrap Theme


I am using bootstrap theme on Drupal 7. My subtheme has some templates that have overwritten certain pages.

I am trying to make a template specifically for one of my content types:

Spokesmodel Page (Machine name: spokesmodel_page)

I have a template named page--spokesmodel_page.tpl.php but for some reason it's not showing up. I've cleared the cache and written a line of code for testing to see if it works but it's getting the template from page.tpl.php

Is there something else I need to do for this to work or should it automatically start working? I've made templates for certain nodes and they work fine.


Solution

  • Try copying node.tpl.php from the parent theme into the child theme and re-naming that according to naming conventions here https://www.drupal.org/node/1089656

    i.e. node--spokesmodel.tpl.php