The Stack Overflow podcast is back! Listen to an interview with our new CEO.
3

From the call stack it is obvious that a function call fails in vertex cms_core_functions.php, which function tries to load the modules on your page in positions, but instead of 2 arguments, it gets only 1. It expects the modules' $name and $style and it gets only one of them. From PHP 7.1 this is handled as an error. Until PHP 7.1 it was only a warning and ...


3

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' ...


2

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 ...


2

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, ...


2

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: $this->setMediaVersion('x.y.z'); where 'x.y.z' is your new version string for your template. Then that string will be used for the ...


1

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: <div class="custom"> <p><img style="display: block; border-width: 0px; margin: 0px auto 0px auto;" src="/images/logo.png" width="800" height="...


1

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 "...


1

You'll be surprised to know that the solution is way easier than you might have imagined. You're not required to name it "default.php". You can name it anything you want. You could, for example, name it "homepage.php" (I'll continue using this name.) When you've created your homepage.php in the /html/com_content/featured/ folder, the new option will ...


1

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 ...


1

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 ...


1

@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. EDIT: https://extensions.joomla.org/extension/jquery-easy-profiles/ Install it and use feature to load the ...


1

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 ...


1

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


1

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 ...


1

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 ...


1

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 ...


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