mod_html - one of the most useful Joomla modules

mod_html - one of the most useful Joomla modules

Article Audience: Webmasters

The mod_html module has been described as the Joomla swiss army knife. It allows you to insert arbitrary html in any template position available.

The mod html module is an extremely simple module, with no limits to its use. It simply provides a wrapper for you to insert arbitrary HTML / Javascript code in your Joomla website. The great thing about it is that you are able to insert adverts or other code without having to modify your template thus you have no risk of breaking your template in some way.

  • Inserting advertising code for affiliate programs
  • Inserting code for Google Adsense
  • Inserting Javascript for generating funky menus
  • Inserting flash components

By creating a copy of the mod_html component, you can use the modules for as many links / adverts as you need! Simple go to the Module Manager Extensions > Module Manager (or Modules > Site Modules) or, click on a module which uses mod_html, select its checkbox and create copy in the toolbar menu, and you have a new copy to work with. Click on the copy of the mod_html , change the required parameters, change the HTML and publish. You can create as many mod_html modules as you want. By combining the use of mod_html with intelligent menu navigation, you will be able to target specific adverts to specifc pages, rather than having generic adverts all over the website.

For example in the image below we can see that for the current module, instead of selecting the All option in the Menu Items, we have created a section (with its categories as children in the menu). We then selected the Affordable Web Development (which automatically selects its children too). Thus this advert has been targeted to the current section (and its categories) only. This is great when you have different affiliates for different parts of your site. Example you have template affiliates (and you target your templates section), and other affiliates for other sections of the site (and thus target each section with its own affiliates).

Target specific pages

Inserting AdSense Code 

Lets give a short example of the use of mod_html to display AdSense code. The following is a shot of the module setup for displaying adsense code on the left side of the screen.

Inserting adsense code using mod_html

Inserting Affiliate Code

In the example below we have different code for affiliates. As can be seen on this site itself, you can see that both mod_html components can live independently of each other.

Inserting affilate code

Warning: Remember that this is a 3rd party module and may compromise your site's security. In this case the risk may be even larger because code you insert may create additional vulnerabilites. Always make sure that your code comes from a trusted source.

One more thing...

Do you have friends or a Facebook group who you think would find this useful? Share this with them and then let me know what they think.

Want to supercharge your website?

  Our website loads FAST ... just 1.29 seconds. We're hosted on FAST InMotion servers We want YOUR website to be fast too, so we've gotten you an exclusive deal - 47% OFF for DART Creations friends + FREE domain! Check it out NOW!

Translate

who are we?

DART Creations is run by David Attard - working in and around the web design niche for more than 12 years, we provide actionable tips for people who work with and on websites. We also run DronesBuy.net - a website for drone hobbyists

David attard

Follow us on Social

         

 

 

 

Popular Content

Joomla extensions to take your website to the NEXT level

Is your Joomla website reaching its full potential? We install many of these extensions on almost ALL of our Joomla sites - why don't you check them out our list of Joomla Extensions and see whether you can take your site to the next level?

Where are we hosted?

This site is proudly powered by FAST VPS InMotion Servers and given an insane speed thanks to MaxCDN!

Web Hosting MaxCDN - Speed up your website

 

InMotion Hosting Review - Recommended Web Hosting servers for business, Joomla, WordPress and ecommerce websites.

InMotion Hosting Review

Advertise on DART-Creations.com

DART Creations is interested in developing partnerships with mutual benefit. If you like the stuff we publish and would like to develop a relationship, we'd be happy to hear from you. Go on - drop us a line - we'd love to hear from you :-)

The Outstanding october Bundle

AWESOMENESS! Bundles of premium font + graphic packs at more than 96% OFF!  Get this bundle for just $29 - This month ONLY!

The Hungry JPEG Awesome font bundles

New! DIVI 3.0 WordPress TeMPLATE + PageBuilder - 10% OFF Limited Launch offer

You'll surely create a perfect website with Divi 3.0!

Divi 3