Skip to main content
4 votes
Accepted

How do I turn off Joomla inserting a BASE tag into the HTML?

I found this answer, but I don't think it's permanent. https://forum.joomla.org/viewtopic.php?t=354052#p2725317 To remove the base tag in the header simply add this to your template file (index.php) $...
Chloe's user avatar
  • 303
2 votes
Accepted

Modify the <head> tag of a page from a module using Joomla core functions

In general, below is the code. $doc = JFactory::getDocument(); $doc->addHeadLink(htmlspecialchars(JURI::current()), 'canonical'); I was looking for the Joomla documentation and only found one from ...
YellowWebMonkey's user avatar
1 vote

For menu item other than article - won't show page header H1

Indeed it is up to each component to produce the display, and thus whether or not to include the page heading param from the menu item. I have seen some templates also implement page titles too. You ...
jamesgarrett's user avatar
  • 3,339
1 vote

How do I turn off Joomla inserting a BASE tag into the HTML?

I haven't tried it recently, but the following should still do it: $doc = JFactory::getDocument(); unset($doc->base); It can be placed in your template's index.php, or in a system plugin. For ...
FFrewin's user avatar
  • 19.8k

Only top scored, non community-wiki answers of a minimum length are eligible