Use your theme path as token to be converted as a full theme path. Helpful to render images, files from your theme folder.
Theme filter module will add an input filter which will convert the to string or a token type string.

This module also supports token module. so, you can use the token_filter module also.

Usage

1st way (without token_filter):

----------------------------------------
Select the text format for which you have enabled the filters, add this text to body part where You want
to use the theme path. Available tokens are

[theme:THEME_NAME]
[theme:THEME_NAME:absolute]
[path-to-theme] 
[path-to-theme:absolute] 

Example:

<img src="[theme:bootstrap]/screenshot.png" />
<img src="[theme:bootstrap:absolute]/screenshot.png" />
<img src="[path-to-theme]/screenshot.png" />
<img src="[path-to-theme:absolute]/screenshot.png" />

Token converts to:

<img src="/sites/all/themes/bootstrap/screenshot.png" />
<img src="http://sitename.com/sites/all/themes/bootstrap/screenshot.png" />
<img src="/sites/all/themes/bartik/screenshot.png" />
<img src="http://sitename.com/themes/bartik/screenshot.png" />

2nd way (with token_filter):

----------------------------------------
This module provides token to be used anywhere in the site with token module.
Here are the available tokens,

[theme-filter:theme:THEME_NAME]
[theme-filter:theme:THEME_NAME:absolute]
[theme-filter:path-to-theme]
[theme-filter:path-to-theme:absolute]

Drupal 8 Port is sponsored and supported by Axelerant

Axelerant is a digital technology and solutions partner—sharing the spark of social responsibility globally and fueled by a shared passion for open source. Our commitment to open source communities, development and innovation enable us to be a world leader in staff augmentation and support. For more information, visit Drupal Staff Augmentation.

Maintainers

This module is maintained by Mitesh Patel. Contributions are welcome. Please create an issue to discuss and patch.

Credit

MisterSpeed Thanks for the idea contribution
Suite6 D7 Development and support

Supporting organizations: 
D8 port

Project information

Releases