Search
Other Sourcerer questions
Forum

Need to set scripts and css to head

Jaakko Leislahti's Avatar Jaakko Leislahti
I didn't manage to set my scripts to head neither css. From setting allow to head is set on and tried example code, nothing helped
Confidential information:
(hidden)

Please advice
Peter van Westen's Avatar Peter van Westen ADMIN
Please read: docs3.regularlabs.com/sourcerer/the-basi...tyles-and-javascript

If you want to add scripts to every page, you will need to make sure the Sourcerer code gets placed on every page. You could do that by placing it in a module that is assigned to all pages.

Or see if your template provides a way to add custom scripts and styles. Then you do not need Sourcerer for this.
Please post a rating at the Joomla! Extensions Directory
Jaakko Leislahti's Avatar Jaakko Leislahti
Thank you for your reply.
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Make sure the editor has not added a link to the URL. So remove any HTML tags inside the {source} tag.

If you can't get it to work:
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me where you have placed these {source} tags...
Please post a rating at the Joomla! Extensions Directory
Jaakko Leislahti's Avatar Jaakko Leislahti
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Well, you NEED to show the module, otherwise the content containing the code will not be placed on the page.
You can't just place the {source} tags in some random content and expect it to work. It needs to be in content that is displayed on the frontend.

You can assign a custom module to a position that doesn't show the module as a block (depending on your template), and set the module title to not show.
Please post a rating at the Joomla! Extensions Directory
Jaakko Leislahti's Avatar Jaakko Leislahti
Module is visible, title set off, module is set to frontpage
Peter van Westen's Avatar Peter van Westen ADMIN
I couldn't log in via the admin credentials.
But make sure the 'Prepare Content' option in the module is switched on.

This is also mentioned ion the documentation:
docs3.regularlabs.com/sourcerer/the-basi...r-files-quick-syntax
Please post a rating at the Joomla! Extensions Directory
Jaakko Leislahti's Avatar Jaakko Leislahti
Confidential information:
(hidden)
Jaakko Leislahti's Avatar Jaakko Leislahti
Problem was strong caching on server. I needed to purge cache to see results
Peter van Westen's Avatar Peter van Westen ADMIN
You probably have the Page Cache system plugin enabled. That caches the entire page including all modules.
You might not want that plugin enabled.

Read for more on caching here: www.joomlabeginner.com/blog/tutorials/81...able-cache-in-joomla
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription