Hello,
I moved the website esperanto.gr from Joomla to FlatPress. I modified the default theme and add a css dropdown menu. There are a lot of static sites without a blog.
Dio
Search found 2 matches
- Mon Sep 22, 2025 4:24 pm
- Forum: General Support
- Topic: Javascript
- Replies: 1
- Views: 384
Javascript
Hello,
I include a javascript file in the theme in the header.tpl adding this line:
<script nonce="{$smarty.const.RANDOM_HEX}" src="{$flatpress.themeurl}js/myscripts.js"></script>
In the file are two functions for a onclick event to show a dropdown menu.
It is working fine locally on localhost ...
I include a javascript file in the theme in the header.tpl adding this line:
<script nonce="{$smarty.const.RANDOM_HEX}" src="{$flatpress.themeurl}js/myscripts.js"></script>
In the file are two functions for a onclick event to show a dropdown menu.
It is working fine locally on localhost ...