Hot answers tagged

3 votes
Accepted

How to include scripts in <head>

Default Joomla behaviour is to add scripts to the head element. Try looking where <jdoc:include type="head" /> appears in your template (under template/YOURTEMPLATE/index.php) - it may have ...
  • 3,072
3 votes
Accepted

Joomla 3.4 Admin Template Override

If you want to avoid core hacks, you can use jQuery to remove the class attribute: jQuery( document ).ready(function($) { $(".icon-eye.thememanager").removeAttr("class"); }); This will leave you ...
  • 13.3k
2 votes

Disable script loading in head

I've used this: foreach ($doc->_scripts as $script => $value) { if (preg_match('/media\/jui/i', $script)) unset($doc->_scripts[$script]); }
  • 121
2 votes

Joomla 3.4 Admin Template Override

The code is located in the following file on line 86 administrator\components\com_templates\views\templates\view.html.php You will see the following code: JToolbarHelper::title(JText::_('...
  • 26.5k
2 votes
Accepted

Remove head script not working in custom component

You should probably be doing this in a system plugin using the onBeforeRender event. At this point in execution, the page is about to be rendered, so the scripts should be in place. Something like ...
  • 593
2 votes

What is the purpose of page heading?

It is there and you can use it as per your needs and in combination with other options, like show title, category title, etc. For me it adds flexibility. It is good to have it there by default, ...
  • 19.5k
2 votes
Accepted

Modification of the generated Joomla head (<jdoc:include type="head" />)

You get the `HtmlDocument' object: $doc = JFactory::getDocument(); // echo "<br><pre>"; print_r($doc); echo "</pre>"; // to check what you have here You can get only the head Data: ...
  • 2,436
2 votes
Accepted

jump after header top bar

If you put on the browser devtools on your site, then in the Inspector you can see that as you scroll down there is a CSS class header-sticky which is added to your <header id="sp-header> ...
2 votes
Accepted

How do I add async attribute for scripts?

You'd better not edit ("core hack") Joomla's core files because that's a recipe for disaster. The async attribute is available if you use the HTMLHelper to include your CSS file. See Joomla ...
  • 1,533
1 vote

How do I add async attribute for scripts?

If you want to add attributes to all scripts, use a system plugin with onBeforeCompileHead event. defined('_JEXEC') or die; use Joomla\CMS\Plugin\CMSPlugin; class PlgSystemExample extends CMSPlugin {...
  • 8,751
1 vote

How to include scripts in <head>

Turns out I DID have the ScriptsDown plugin installed, although it didn't show up the first time I searched for it in my early exploration of this issue. I'm guessing I had a typo. Anyways, this was ...
  • 33
1 vote

Return JSON using the Joomla Framework

Here you go (for use in controller methods mapped to by webservices plugin-mediated routes predominantly): This works in J! 3 & J! 4 In your controller's class, add the following public method (I ...
1 vote
Accepted

Custom header content depend on article

There are numerous ways to customise something depending on something, so I can only answer by suggesting some ways to do some things. First of all, generally in Joomla one tries to do minimal coding ...
  • 3,144
1 vote
Accepted

How to debug joomla behaviors?

There's a sourcerer tag used in the facebook og tag generator. If you switch the view source you can see it like this: <meta property="og:description" content=" <!-- You can place html ...
  • 3,144
1 vote

Changing the headerlogo in beez3 template the image isn't fit to the headerlogo

No, I don't have another template - I know what I 'm talking about and this is about the Beez that comes with Joomla 3. I replaced the image with another of the same size and it's not looking bigger ...
  • 19.5k
1 vote

Jquery is not included in my component's head

To expand on Lodder's answer, using JHtml::_('jquery.framework'); at the top of your component's views and before any other calls to your custom js, will ensure that jQuery will be loaded, before ...
  • 19.5k
1 vote

Jquery is not included in my component's head

Joomla adds it all over the place. Do a search for JHtml::_('jquery.framework'); in the core files and see how. The javascript frameworks do seem a bit messily implemented. There is some ...
  • 3,072
1 vote
Accepted

Jquery is not included in my component's head

It's not up to the template or Joomla to load jQuery. You'll normally find jQuery being loaded on a lot of the default pages cause an extension does, however Joomla is not required to load it by ...
  • 26.5k
1 vote

Change header image Joomla 3.6.0

Assuming that by "header image" you are NOT reffering to "Kiperowil" logo in header, but to trucks images in slider underneath, you can change them in 'Vinaora Nivo Slider' published in position-4. I ...
  • 3,017
1 vote

Mobile header available only on the main page

Ok, so the markup for the header isn't there at all, so we know it's not a CSS related issue. I'm going to have a guess and say it's most likely 1 of 2 things: 1: The header is a module. Therefore you ...
  • 26.5k
1 vote

Joomla: Show Header of my menu not working

Not sure what do you mean with heading page. Regarding showing the title twice, I guess you have the options set to display the article title. In the options of that menu item, set article title to ...
  • 19.5k
1 vote

Joomla 3.4 Admin Template Override

If you are in Joomla 3.4.1, the easiest way in my opinion is to override the css rule for the .icon-eye.thememanager:before selector, using a custom.css inside the ISIS template css folder. Just ...
  • 19.5k

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