Questions tagged [header]
For questions on modifying Joomla's header content, including HTML HEAD area, template header positions and HTTP Headers
26 questions
1 vote
1 answer
86 views
Grant access to Joomla API from just one site
In Joomla Joomla 4/5: What is the best strategy to allow access to Joomla API endpoints from only one (or more) specific domains? And how is this configured in Joomla 4/5? (CORS vs. HTTP-Header-Plugin ...
1 vote
1 answer
921 views
Export as Excel with PHPSpreadsheet as download how to keep Joomla Messages?
In my custom Joomla 5 component I've added PHPSpreadsheet via composer. In the Export View (Backend) i have a small adminform for setting up the export and a submit button that toggles the download by ...
1 vote
1 answer
307 views
Manipulate Meta Description Content using Joomla Module
I want to create a Joomla Module that has the capability to write its own text based on the GET data within the submitted URL, it sounds feasible, let's say the submitted URL is yourdomain.com/index....
0 votes
1 answer
845 views
Joomla 4.1.5 <meta name="keyword"> doesn't show
I use Joomla 4.1.5, and I created my own Joomla Template following the tutorial from joomla.org. My problem is that while other metadata shows correctly on the frontend pages, the <meta name="...
1 vote
1 answer
152 views
How to use HTMLHelper for other file types?
I found samples where HTMLHelper was used to load some types of files like stylesheets, scripts and images: $this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon.svg', '', [], true, 1), 'icon', ...
0 votes
1 answer
874 views
How to remove CSS and JS from Joomla 4 header?
I want to properly remove CSS and JS links from Joomla 4 header For example I did not want: <link href="/newer/media/vendor/fontawesome-free/css/fontawesome.min.css?5.15.4" rel="...
1 vote
1 answer
489 views
How to stop Joomla 4 from loading collapse.min.js in my template
I built a custom Joomla 4 template and unfortunately Joomla is automatically loading collapse.min.js When I view the page source I see this in the head: <script src="/media/vendor/bootstrap/js/...
3 votes
2 answers
308 views
Place article specific scripts in head section
I'm using a lot of javascript files for my articles. These scripts shouldn't be loaded everywhere - only in certain articles. That's the reason why I don't add them inside of the templates´ head. At ...
0 votes
1 answer
844 views
jump after header top bar
My site has a top bar and a nav bar with the site menu. Strangely enough, after a few pixels of scrolling down, the content part of the site jumps up. I think this wasn't doing this initially, but I ...
2 votes
2 answers
667 views
How do I add async attribute for scripts?
I would like to add async to script tags coming from here <jdoc:include type="head" />. I have done some research and I found a few solutions, however those are for custom scripts. I ...
3 votes
2 answers
4k views
Modification of the generated Joomla head (<jdoc:include type="head" />)
I try to modify the generated <head> of a Joomla website 3.9.13. Unfortunately I faced on the famous <jdoc:include type="head" /> How can I modify it? I could not find any reference if ...
0 votes
0 answers
154 views
API to read and write http headers?
I am wondering what is the best way to read and write http headers in Joomla? What do I need to achieve? I want to read all requests headers I want to add response headers I want to control optional ...
2 votes
2 answers
3k views
How to include scripts in <head>
Ok I am having a hard time with this one. I just inherited a 3.8.x Joomla site and all I'm trying to do is include a GTM script in the head of the document. What's happening is that anything within ...
1 vote
1 answer
573 views
Custom header content depend on article
I am wondering is it possible to have different headers depending on the different articles? e.g article ID 1 shows header A and article ID 2 shows header B. Currently I have modified the template ...
1 vote
1 answer
2k views
"Headers Have Already Been Sent"
I was having difficulty with a Joomla! site and decided to move it to another server for testing. The Akeeba backup I had would not fully extract for some reason (a large backup file included in the ...