Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I need to create a preprocess function in template.php file of my theme. I am using this theme I am not able to find any template.php file. Do I create a new file of is there any other file that I should write in?
Thanks,
Prerna
Comments
Comment #1
sheena_d CreditAttribution: sheena_d commentedPrerna,
You just need to create a blank text file inside the theme and name it template.php. Be sure to include an opening PHP tag at the beginning (
<?php
), add your preprocess function and that's it!Good Luck,
Sheena
Comment #2
pmathur01 CreditAttribution: pmathur01 commentedthanks