Jump to content

[Solved] How to target the current theme's directory.


dfunkydog

Recommended Posts

I am trying to change the look of a module but am determined not to touch that module's original files.

I've copied the '.tpl' file to my

my_theme/modules/modules_name/

directory. So I've been able to rearrange things to the way I want.

The problem I'm having is linking to a stylesheet I've created in the same folder above. I have in the tpl file

href="{$tpl_dir}modules/module_name/file.css"

but that doesn't work.

****UPDATE****

I might have framed the question poorly. What I'm looking for is the prestashop smarty variable for the current theme. I don't want to use {$theme_dir}/my_theme/ as I'm try to avoid using a specific theme.

I've put the css file in my_theme/css/ and called {$css_dir}/my_css_file.css which works, but I'd still like to know the variable for the current theme directory.

Link to comment
Share on other sites

  • 1 month later...
  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...