Trying to get a global variable in <head> of _document.twig #594
-
I've tried a few different ways, but struggling to figure out how I might set a global variable using I can figure out how to manually add it to context for every entry php file, but I'd prefer to not have to duplicate code, it would be best to apply it once to Is there a way to create a global option field and output it in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@andrewatduckpin If I understand correctly, we are currently doing this in the theme.php file, where we pass the data to the context: Line 20 in a934c44 Does this help? |
Beta Was this translation helpful? Give feedback.
@andrewatduckpin If I understand correctly, we are currently doing this in the theme.php file, where we pass the data to the context:
flynt/inc/theme.php
Line 20 in a934c44
Does this help?