Hot answers tagged

8 votes
Accepted

Is it possible to load a newer jQuery version?

Or does Joomla really need the 1.x version? Joomla itself may work mostly fine with newer jQuery versions. The reason it ships with such an old version is compatibility for 3rd party extensions. So ...
Sharky's user avatar
  • 11.1k
4 votes
Accepted

How do I use Joomla's built-in cache busting technique for scripts and stylesheets?

Yes, there is a built-in cache busting technique. If you use it, your HTML will look like this: <script src="/media/path/foo/bar.js?32af2f62db6e60053132340acc9dfb3c" type="text/javascript"></...
Flimm's user avatar
  • 481
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.1k
3 votes

How Templates work and load css/js files? Website building process with Purity III

Your question consists of two questions, which both are too broad to be explained in details here, plus it seems there is a big gap of knowledge you have to cover. 1. What does happen if i call ...
FFrewin's user avatar
  • 19.7k
3 votes
Accepted

Where to edit the responsive html codes for the main page for my website

Those divs have the classes h2 visible-lg visible-md visible-sm The following code hides those divs. Line: 6685 .visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; } ...
John's user avatar
  • 308
2 votes

Where to edit the responsive html codes for the main page for my website

Don't really know for your template but it can be the good file. It is generally a huge file :) It is protostar/css/template.css for the protostar template shipped with Joomla. Once found, you should ...
jcm69's user avatar
  • 248
2 votes
Accepted

How to add un/archive or un/trash buttons in a manager button-group that isn't in a dropdown?

Had to look into this again and I seem to have found a solution. Just like the publish button rendered using jgrid.published in the example below: <?php echo JHtml::_('jgrid.published', $row->...
Glitch's user avatar
  • 287
2 votes
Accepted

How to select predefined options in an custom form list-field?

I had to do the same thing. I copied the list form field code and changed it accordingly, so I have 2 functions: getInput() getOptions() which you have In the getInput function, that's what actually ...
Alex Mehan's user avatar
2 votes

Display disabled radio button

Checkout radiolist option of JHTML JHTML::_('select.radiolist', $options, 'some label' ); Ref: https://docs.joomla.org/API16:JHtmlSelect/radiolist
Nagarjun's user avatar
  • 2,991
2 votes
Accepted

If I want to globally include a framework aside from jQuery?

Yes. This will be short -- you need to understand the code you're working with because this technique is one of the most powerful ones Joomla affords you and there is basically no documentation of it ...
Arlen's user avatar
  • 802
2 votes
Accepted

Mod_Feed removing the strip image function what do the True & False do?

The arguments for JHtmlString::truncate() are: string $text The text to truncate. integer $length The maximum length of the text. boolean $noSplit Don't split a word if that is where ...
Sharky's user avatar
  • 11.1k
2 votes

Override JHtml core function select.radiolist

You can override specific methods using JHtml::register(). defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Plugin\CMSPlugin; class PlgSystemOverrides extends CMSPlugin { ...
Sharky's user avatar
  • 11.1k
2 votes
Accepted

Override JHtml core function select.radiolist

I got this working ok with just a little change from what you have above. If you can't install the plugin then maybe your filenames or folders aren't correct. Joomla is very fussy about those! I put ...
Robbie Jackson's user avatar
2 votes
Accepted

How can I add height and width attributes to an image in a menu?

Your attributes are added only when image class is set. If you want dimensions on all images, move the code outside of $item->menu_image_css check: if ($item->menu_image) { $image_attributes[...
Sharky's user avatar
  • 11.1k
1 vote

How to change logo's link URL?

That sort of thing is completely in the control of the template designer; Joomla doesn't care how that's set. Not being familiar what template you're using, it's hard for me to tell precisely how it'...
Arlen's user avatar
  • 802
1 vote
Accepted

Custom JHtml method

Assuming you don't even want to load the class file, this is simply not possible. You must register the JHtml service or the include paths or load the class. Either manually wherever you want to use ...
Sharky's user avatar
  • 11.1k
1 vote
Accepted

Need help in removing a bg image

There's probably an easier way but you could achieve the desired result as follows: Add a page class for the home page e.g. home-page In the custom.css file, replace this: .header-outer {background:...
Neil Robertson's user avatar
1 vote

Background music on a homepage

You can simply use a small Javascript snippet to autoplay some music. Here is a basic example below and you'll notice audio.autoplay = true. var source = 'https://sampleswap.org//samples-ghost/...
Lodder's user avatar
  • 26.9k
1 vote
Accepted

Is there any one to use the mod_menu as we please? *Modifying the backend*

To modify the HTML structure, create a template override. This can be done through Template Manager or by manually copying files through FTP. The documentation already covers this very well: How to ...
Sharky's user avatar
  • 11.1k
1 vote
Accepted

How can I add an ID to a JHTML call

Assuming you want to add an attribute to the resulting anchor tag, pass another argument, an array with attributes as keys and their values as values: echo JHtml::_('icon.edit', $displayData['item'], ...
Sharky's user avatar
  • 11.1k
1 vote

joomla 3 - how to add/insert html pages in my site without iframe?

To simulate the structure of HTML files, to keep the same URLs, I suggest to: Create category/articles structure similar to the folder/files structure. Copy the HTML content into articles. Enable "...
Mohamed Abdelaziz's user avatar
1 vote

Is there a method to sort the FormBehavior.chosen output in Joomla 3?

Working solution used. Included jQuery Select2 3.5.4 plugin which is similar to jQuery Chosen so it's kind of an overkill, but it worked. https://github.com/select2/select2/releases/tag/3.5.4 ...
Nadal's user avatar
  • 188
1 vote

Edit HTML-Code of specific Joomla Page

Have you tried physically creating a file at /onlineshop/product/view/5/14.html with the replacement HTML code? Works when I tested it just now. If a physical file exists at that request Joomla ...
Drew G's user avatar
  • 890
1 vote

Edit HTML-Code of specific Joomla Page

Joomla is a PHP based content management system and web pages are built dynamically depending on which template, component, modules and plugins are associated with the page. HTML can't easily be ...
Neil Robertson's user avatar
1 vote

How can I change the Class of SELECT fields that Joomla generates'

I find it easier to add a custom class using jQuery. just put this javascript code snippet in the head section of your template, the majority of template/frameworks providers supports custom ...
Mohamed Abdelaziz's user avatar
1 vote

Add html to transactional email

There were debates arround Adding HTML support to Joomla Notification email for com_user a while ago and even there's a (closed/cancelled) pull request for that. If you're willing to hack the core you ...
webchun's user avatar
  • 2,418
1 vote
Accepted

Chosen on AJAX content

Change below code: $.get( urlGet, function( data ) { $('#popupDialogue .popup-content').html(data); $('#popup') .removeClass('loading'); }); to $.get( urlGet, function( data ) { $('#...
Nagarjun's user avatar
  • 2,991
1 vote

Ads code show blank space or not showing at all

If your website is new, then note that Google doesn't play ads on new websites immediately. Google implemented this a long time ago to ensure that spam websites are filtered out and do not run ads ...
itoctopus's user avatar
  • 3,226

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