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.
- Inserting advertising code for affiliate programs
- Inserting code for Google Adsense
- 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).
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 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.
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!
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
Follow us on Social
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 HunGRYJPEG Bundles
AWESOMENESS! Bundles of premium font + graphic packs at more than 96% OFF! Get this bundle for just $29 - This month ONLY!
New! DIVI 3.0 WordPress TeMPLATE + PageBuilder - 10% OFF Limited Launch offer
You'll surely create a perfect website with Divi 3.0!