The old and deprecated way is to place MD5SUM file in the asset folder and have it updated whenever an asset file is modified. Once you create the file, add assets without version or with md5sum as version:
JHtml::_('stylesheet', 'template.css', array('relative' => true));
JHtml::_('stylesheet', 'template2.css', array('version' => 'md5sum', 'relative' ...
Gantry5 makes it easy to add HTML/CSS/JS to the head within the Page Settings on the Base Outline (or a specific one). http://docs.gantry.org/gantry5/configure/page-settings#head-properties
However, PHP would probably be best into the includes/theme.php file: http://docs.gantry.org/gantry5/advanced/php-functions#overriding-the-themephp-file
You might ...
In your index.php, you can use the following:
<?php $menu = JFactory::getApplication()->getMenu(); ?>
<?php if ($menu->getActive() != $menu->getDefault()) : ?>
<jdoc:include type="component" />
<?php endif; ?>
All this basically does is check if the active menu item doesn't match the default menu item. If it doesn't, ...
Depends upon how you change your css files. The JHTML line you have above works, it's just that the version doesn't change unless you force it to.
In the beginning of the index.php file in the template you also need to add:
where 'x.y.z' is your new version string for your template. Then that string will be used for the ...
I Feel sheepish
All I had to do was go into the Extensions >> Templates menu and assign the Protostar template to those menu items, and bingo. A template that was pretty much designed to be a front end editor.
The p element in the module content in the header seems to have a top margin and bottom margin associated with it.
You could fix the spacing issue by changing the content of the module from this:
<p><img style="display: block; border-width: 0px; margin: 0px auto 0px auto;" src="/images/logo.png" width="800" height="...
I'm really not sure what you're after, but what I think you're asking for is how to make the category blog that you have designated as your home page show a list of article titles, no intro text.
To do that, go to the "Blog Layout" tab of the menu itemand put zeroes in the boxes for Leading Articles and Intro Articles, then put in a number for how many link ...
It appears to me that you want to just show the title of the articles in your blog and not the Introduction Text or the Full text of the Article.
If you want the article list to appear in the body of your Homepage then you need to update the Menu Item Type for the Home page and select Articles->Category List.
If you want to display a list of the articles ...
@Lodder's answer is probably the best one. However, for those who cannot easily change their template, I recommend trying jQuery Profiles to remove unnecessary scripts and try JotCache as it can work with JCH Optimize to handle the caching better.
Install it and use feature to load the ...
Firstly, I'd suggest not using Google PageSpeed, but instead the "Audit" tool build into the Web Developer Tools (uses LightHouse). Simply press "F12" to open the developer tools, then navigate to the "Audit" tab.
The problem with pre-made templates is they tend to use massive frameworks such as Bootstrap, UIKit or Foundation. They'll load the entire ...
Editing the template code directly is not considered best practice as future template updates may overwrite your changes.
A better approach might be to use a third party extension. There is likely something suitable in the Joomla Extensions Directory at http://extensions.joomla.org/category/core-enhancements/coding-a-scripts-integration
I assume that when you say new menu, you mean a new menu item.
If I have understood right what you have done, you have assigned the second template and the login module on that one new menu item that requires login, for which -I also assume- you have set its access level to a non public level, which most likely that would be Registered.
See what happens ...
Manic day hadn't had a chance to revisit this but I did manage to resolve the issue. The Hadron template actually has a placeholder for the header element called analytics. I was able to utilize the default custom html module to solve the problem.
Thanks all for replying. Failing the above solution I most likely would have just ended up building something ...
Good question and the "correct answer" as others have commented is that you probably need to use a plugin to do this properly.
The RocketTheme "Hadron" Gantry 4 template does allow a custom CSS file but does not provide any feature to include an external CSS or JS file.
You could avoid installing a plugin by adding the code via a custom HTML module. You ...
There's always more than one way to do something. This is just a possibility that occurred to me, I haven't tested it extensively, but take a peek at it and see if it'll work for you.
Create an articles->category module, in the filtering options select "Featured Articles" -> "only" and override the default output of that to suit your need.
Then create a "...