Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • Creating template in Joomla

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 44
    Comment on it

    Two files are required to create a template in Joomla. First is the index.php file, in this file we can place php code where the content of site should go and second file is templatedetails.xml which includes all the configuration settings and parameters required. One CSS file is also required where we can put our CSS related work. All these files will work together and produce content for Joomla website.

    Now create a new folder inside templates folder. Inside a folder create one text file name as index.php file and other is templateDetails.XML file and one css folder. Inside css folder create template.css file. So we need to link template.css file to index.php file. Place the content which is given below in templateDetails.XML file. In this file we will add template related information and basic module positions settings.

    <?XML version="1.0" encoding="utf-8"?>  
    <!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN"  
    <install version="1.5" type="template">  
           <copyright>You 2011</copyright>  
           <description>Joomla template</description>  

    Next open an index.php file and place the content which are given below.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">  
    <html XMLns="" XML:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >  
    <jdoc:include type="head" />  
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/your_template_name/css/template.css" type="text/css" />  
    <div id="container">  
    <div id="header"><jdoc:include type="modules" name="top" /> Header information</div>  
    <div id="sidebar_left" class="float">
    <jdoc:include type="modules" name="left" />
    <div id="sidebar_right"class="float"><jdoc:include type="modules" name="right" />Right sidebar</div>  

    Next is to create a zip file and install the template from Joomla administrator panel. Once installed it will appear under template manager where you will mark it as a default to display on front end website.

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: