PDA

View Full Version : How to add a logo image in no logo created position on joomla template



nicky1212
03-14-2012, 12:16 PM
Hello,
I am using your joomla template and I cant find position for logo in this template (http://www.joomla-templatedemo.de/?t...eground-j16-36). Is this possible to add a position for my logo image and how can I add.
Thank you in advance,
Jasmina

Hristo.P
03-20-2012, 09:56 AM
Hi Jasmina,

You can add additional positions anywhere in your template. Open the index.php file located in your templates/siteground-j16-36/ folder and add this lines wherever you want to display the additional module position:

<?php if( $this->countModules('newposition') ) : ?>
<div class="new-position">
<jdoc:include type="modules" name="newposition" style="rounded"/>
</div>
<?php endif; ?>

It is a simple piece of code that checks whether theare are modules, published in the "newposition" position and if so - displays them into a div element with "new-position" class. Using a div to wrap your modules is a good idea, because it will help you style it further once you get it displayed on your website.

Finally, add the module position to the templateDetails.xml file in the same directory. Locate the <position> string and add right after it:

<position>newposition</position>

Once you do this, you can publish modules into "newposition". However, you will have to add to the CSS file of the template to style this new div with modules published into the new position.