Skip to main content
Share Your Experience: Take the 2024 Developer Survey
9 votes

How do I override the CSS styles in my template?

Joomla 3.5+ (Protostar template) As of Joomla 3.5, you're able to create file called user.css and place it in: templates/protostar/css/user.css Note: the file name must be user.css The protostar ...
Lodder's user avatar
  • 26.9k
6 votes
Accepted

Chrome problem: How to remove the div class=”custom” from a Joomla module

The solution was to create a module override of \modules\mod_custom\tmpl\default.php The offending code in that file was <div class="custom<?php echo $moduleclass_sfx ?>" <?php if ($...
TryHarder's user avatar
  • 2,340
6 votes
Accepted

How to adjust search keyword sanitization settings as language override?

Look for methods called set<PROPERTY>Callback on the same API documentation you linked. E.g. to override the lower limit use Joomla\CMS\Language\Language::setLowerLimitSearchWordCallback(). I'm ...
Sharky's user avatar
  • 11.4k
5 votes
Accepted

Adding a new view to built in component (com_tags)

There are multiple ways to add functionality or output views to existing components. You could try a template override. If you need more data then available in the component's model, then you could ...
pe7er's user avatar
  • 2,058
4 votes

How do I get an unordered list of article tags in category blog view?

Try the following code and see if it gives you the output you want: <ul> <?php foreach ($this->item->tags->itemTags as $tag) : echo "<li>" . $tag->title . "</li&...
johanpw's user avatar
  • 13.3k
4 votes

How to keep overrides updated?

For Joomla! 4.x users: finding any updated files overridden in any extension easily. The update script of Joomla! will create/modify the icon Override(s) to Check on Home Dashboard. If clicked on ...
DelD's user avatar
  • 41
4 votes
Accepted

Override blog category location

All you need is just copying these files : .../components/com_content/views/category/tmpl/blog_children.php .../components/com_content/views/category/tmpl/blog_item.php .../components/com_content/...
webchun's user avatar
  • 2,418
4 votes
Accepted

Override JHtml (HTMLHelper) class methods

Create a system plugin and use JHtml::register() to register your custom methods. defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Plugin\CMSPlugin; class PlgSystemExample ...
Sharky's user avatar
  • 11.4k
4 votes

Module title is not showing despite setting module title to yes

You are using a Gantry template, which likely has pre-defined module positions. In the Hydrogen template that you're using, the module position will be getting called like this: <jdoc:include type=&...
Grant G's user avatar
  • 714
3 votes
Accepted

Override category list of K2 frontend item form

There may be a correct way deeper in the depths of K2 to not have the disabled categories in the list in the first pace, however, the quickest solution is to use regex to remove them. <?php $...
David Hayes's user avatar
3 votes
Accepted

Override: Style next and previous button

This depends on your template, for example in the default Protostar template you can find this file in: /templates/protostar/html/pagination.php If you don't have this file you can create a new one, ...
AlejandroVega's user avatar
3 votes
Accepted

How to override helper file in template?

If the Helper Class is loaded in a dynamic way, checking if it's already loaded, YES. You can override it. Not with a HTML overrides, but with a System Plugin. You can create a System plugin, loading ...
Anibal's user avatar
  • 7,445
3 votes
Accepted

How to rewrite JText to get my custom text translations from Database and not from files

Instead of overwriting or modifying the JText class why not just write a function call function in your model that retrieves your translation from the database and return the string? Echo the string ...
Terry Carter's user avatar
  • 1,812
3 votes
Accepted

Contacts Page 'Alphabet Bar'

Ok, so in your override, on lines 47 and 49, you'll see <li> tags. Inside both of them, add the following data attribute: data-category="<?php echo substr($this->escape($item->name), 0,...
Lodder's user avatar
  • 26.9k
3 votes
Accepted

Export language overrides

Like all languages strings, overrides are stored in .ini files in language directories: /administrator/language/overrides/ /language/overrides/
Sharky's user avatar
  • 11.4k
3 votes

Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them?

The ability for people with only Author level access to edit their own articles, ones they have created, is limited to only Articles that are Published, meaning they cannot edit an Article they have ...
Irata's user avatar
  • 3,947
2 votes

How to automatically override template for a list of articles under a specific category?

Just a little update on this : since Joomla 3.8, one can directly choose the Layout in the Menu Item > Articles > Blog That menu item has to be Published of course, but it can be Hidden (also an ...
Woluweb's user avatar
  • 21
2 votes

How to create a custom 404 Error page for every language

Based on: How to detect the current language of a Joomla! website? Creating a Custom 404 Error Page $lang = JFactory::getLanguage(); $result = $lang->getTag(); if (($this->error->getCode(...
user9849's user avatar
2 votes

Is it possible to override js scripts?

Sometimes the author of your component will provide a way to do such an override, so check the documentation first. If that is not possible, brute force works: I recently solved this problem for ...
Confidant's user avatar
  • 131
2 votes
Accepted

Is it possible to override js scripts?

Yes, and no... Let's start with the "no" - The Joomla core devs have created a way to inject scripts, but no (API) way to remove them. And, "Yes" , but it's complicated.... You'll need to create a ...
Michael's user avatar
  • 593
2 votes
Accepted

How to tweak a plugin so it will load below the author?

As shown in this question: Make an override of /plugins/content/jw_disqus/jw_disqus/tmpl/article.php in your template folder /html/jw_disqus/article.php. In this file echo $row->text actually ...
Kitase88's user avatar
  • 977
2 votes

Tag List Template Global Setting is Ignored

I just asked Google 'joomla tag list override' and it told me: http://forum.joomla.org/viewtopic.php?f=706&t=854545 Edit - Update 1: Copy components/com_tags/views/tag/tmpl/default.php and rename ...
Mikan's user avatar
  • 3,007
2 votes
Accepted

How to use custom logo markup with Helix framework templates?

First of all update at least to Joomla 2.5.28 and apply the required patches. More info here: https://www.joomla.org/announcements/release-news/5643-joomla-3-4-7.html https://docs.joomla.org/...
FFrewin's user avatar
  • 19.7k
2 votes

Chrome problem: How to remove the div class=”custom” from a Joomla module

We were having the same problem with this module. It may be something with the newer Joomla version we're using but we couldn't get oooooo's answer to work. There is a slightly new directory ...
Eko3alpha's user avatar
  • 131
2 votes

How to remove username in the Joomla registration

You really don't need to install third-party plugins for this. Just create template override for com_users registration and there you can hide username field and copy email field value into this ...
Alexandr's user avatar
  • 1,130
2 votes

Override the scripts.js of a Joomla template

Edited How you're going to achieve this is going to depend on the script object's scope. Search in the scripts file for the function executed when the window is loaded. It should begin with either: ...
Bathmat's user avatar
  • 502
2 votes

Contacts Page 'Alphabet Bar'

I know this is not direct answer to your question, but there's free module that does exactly what you want: http://www.aftercube.com/demo/free-extensions/ac-contacts Cheers!
pippo8765's user avatar
2 votes
Accepted

Helix 3 Logo and Text

The file I had to edit was located at templates/shaper_helix3/features/logo.php (thanks to @Lodder for a point in the right direction!). In this file at around line 56 you will see that start of the ...
jonboy's user avatar
  • 3,603
2 votes

Override Global CSS within Article

There are a lot of resources in this site about overriding CSS. Depending on your template and overall site/page configuration, you might be able to just do this by using a unique css selector that ...
FFrewin's user avatar
  • 19.7k
2 votes
Accepted

Override the Edit profile form allowing edit of contact fields

I would override the profile model with a plugin: https://community.joomla.org/blogs/community/521-did-you-know-overrides-are-not-just-for-html.html https://docs.joomla.org/...
Dennis Heiden's user avatar

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