Joomla.it Forum
Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => I Template di Joomla 1.6/1.7/2.5 => : Atrox 20 Dec 2011, 19:17:57
-
Salve a tutti, ho cercato tantissimo con google riguardo questo argomento e non ho trovato ancora una soluzione! Vorrei togliere il titolo del sito dall'header per mettere una mia immagine, purtroppo dalle impostazioni in gestione template posso solo modificare il testo mentre dalla gestione del menu home non mi appare nessuna opzione per disattivare il titolo. Nei CSS non ho trovato nessuna stringa che mi aiuti, le ho provate tutte ma non ho trovato un rimedio!
Se può essere utile utilizzo Joomla 1.7 e il link al sito è il seguente [size=78%]http://atrox.altervista.org/joomla/ (http://atrox.altervista.org/joomla/)[/size]
Spero mi possiate aiutare! Grazie anticipatamente ^^
-
Benvenuto nel forum di joomla.it Atrox,
nel backend di joomla,
nella gestione del tuo template dovrebbe esserci la voce "Slogan"
Lì ci scrivi quello che vuoi e cancelli lo slogan dello sviluppatore.
[allegato vecchio più di un anno eliminato da un amministratore]
-
Per modificarlo non ci sono problemi ma per toglierlo del tutto? Devo mettere un immagine al suo posto
-
Prova a lasciarlo vuoto
-
Già provato e mi appare il Titolo di Default..
-
Scuate se 'uppo' ma vorrei sapere se è possibile togliere tutta la parte che sta sopra nel sito e non solo il titolo. Vorrei che nel modulo top ci sia lo slide e che esso venga usato come header. In poche parole voglio eliminare le due strisce gialle che sono in alto e in basso del sito.. è possibile?
Gardate per capire http://atrox.altervista.org/joomla/ (http://atrox.altervista.org/joomla/)
-
devi rimuovere tutta headerwrap
prima fa un bel backup però :)
-
L'ho eliminato ma l'unico risultato che ho ottenuto è questo qui http://atrox.altervista.org/joomla/ (http://atrox.altervista.org/joomla/)
Cioè non è più giallo ma grigio antracite.. Non ha funzionato :-\
-
ispezionando io lo vedo ancora ...
backup prima, poi rimuovi la posizione dall'index.php
-
L'ho rimesso per 5 minuti perchè dovevo fare una prova, ora l'ho tolto nuovamente..
Nel file index.php cosa devo eliminare? Scusa la nabbagine >.<
Questo è tutto l'index.php, non so dove operare
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$showLeftColumn = (bool) $this->countModules('position-7');
$showRightColumn = (bool) $this->countModules('position-6');
$showRightColumn &= JRequest::getCmd('layout') != 'edit';
$headerType = $this->params->get("headerType","1");
$myimage = $this->params->get("myimage","dealer1.jpg");
$myfolder = $this->params->get("myfolder","sampledata");
$duration = $this->params->get("duration","1000");
$delay = $this->params->get("delay","4000");
$imageWidth = $this->params->get("imageWidth","980");
$imageHeight = $this->params->get("imageHeight","360");
$forceresize = $this->params->get("forceresize","0");
$showControl = $this->params->get("showControl", "true");
$display = $this->params->get("display","sequence");
$arrowColor = $this->params->get("arrowColor","black");
$frontpagediv="0";
if ($headerType == "0" || $headerType == "1") {
$lang =& JFactory::getLanguage();
$locale = $lang->getTag();
$menu = JSite::getMenu();
if ($menu->getActive() == $menu->getDefault($locale)) {
$frontpagediv="1";
}
} elseif ($headerType == "2" || $headerType == "3") {
$frontpagediv="1";
}
$margin = 30;
$outermargin = 0;
$logoText = $this->params->get("logoText","");
$slogan = $this->params->get("slogan","");
$pageWidth = $this->params->get("pageWidth", "980");
$pageWidth = $pageWidth - $outermargin;
$rightColumnWidth = $this->params->get("rightColumnWidth", "190");
$leftColumnWidth = $this->params->get("leftColumnWidth", "190");
$logoWidth = $this->params->get("logoWidth", "300");
$widthdiff = 0;
if ($forceresize == "1") {
$imageHeight = round($imageHeight * ($pageWidth + $outermargin - $widthdiff) / $imageWidth);
$imageWidth = $pageWidth + $outermargin - $widthdiff;
}
$controlPosition = 50 - 2500/$imageHeight;
$headerrightWidth = $pageWidth + $outermargin - $logoWidth - 20;
if ($showLeftColumn && $showRightColumn) {
$contentWidth = $pageWidth - $leftColumnWidth - $rightColumnWidth - 3*$margin;
} elseif (!$showLeftColumn && $showRightColumn) {
$contentWidth = $pageWidth - $rightColumnWidth - 2*$margin ;
} elseif ($showLeftColumn && !$showRightColumn) {
$contentWidth = $pageWidth - $leftColumnWidth - 2*$margin ;
} else {
$contentWidth = $pageWidth - $margin ;
}
JHTML::_('behavior.framework', true);
?>
<!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/grey.css" type="text/css" />
<!--[if IE 6]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie6.css" type="text/css" />
<style type="text/css">
img, div, a, input { behavior: url(<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/iepngfix.htc) }
#sidebar div.moduletable h3, #sidebar-2 div.moduletable h3, .moduletable_menu h3 { behavior:none;}
</style>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/iepngfix_tilebg.js" type="text/javascript"></script>
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie67.css" type="text/css" />
<![endif]-->
<!--[if lte IE 8]>
<style type="text/css">
#sidebar div.moduletable h3, #sidebar-2 div.moduletable h3, .moduletable_menu h3 { behavior: url(<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/PIE.php) }
</style>
<![endif]-->
<style type="text/css">
#logo {
width:<?php echo $logoWidth; ?>px;
}
#headerright {
width:<?php echo $headerrightWidth; ?>px;
}
#slideshow-container {
width:<?php echo $pageWidth + $outermargin - $widthdiff; ?>px;
height:<?php echo $imageHeight; ?>px;
}
#slideshow-container img {
width:<?php echo $imageWidth; ?>px;
height:<?php echo $imageHeight; ?>px;
}
#slcontrol {
width:<?php echo $imageWidth; ?>px;
top:<?php echo $controlPosition; ?>%;
}
a#slprev {
background: url("<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/previous-<?php echo $arrowColor; ?>.png") no-repeat scroll left center transparent;
}
a#slnext {
background: url("<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/next-<?php echo $arrowColor; ?>.png") no-repeat scroll right center transparent;
}
</style>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/verysimpleslideshow.js" type="text/javascript"></script>
<?php if (($headerType == "1" || $headerType == "3") && $frontpagediv == "1") : ?>
<script type="text/javascript">
window.addEvent('domready',function() {
var slideshow = new VerySimpleSlideshow({
container: 'slideshow-container',
elements: '#slideshow-container img',
showControls: <?php echo $showControl; ?>,
transDelay: <?php echo $delay; ?>,
transDuration: <?php echo $duration; ?>
});
slideshow.start();
});
</script>
<?php endif; ?>
</head>
<body>
<div id="headerwrap" class="gainlayout">
<div id="header" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;">
<div id="logo" class="gainlayout">
<h2><a href="<?php echo JURI::base(); ?>" title="<?php echo htmlspecialchars($logoText); ?>"><?php echo htmlspecialchars($logoText); ?>[/url]</h2>
<h3><?php echo htmlspecialchars($slogan); ?></h3>
<>
<div id="headerright" class="gainlayout">
<?php if($this->countModules('position-1')) : ?>
<div id="topmenu" class="gainlayout">
<jdoc:include type="modules" name="position-1" style="xhtml" />
<div class="clr"><>
<>
<?php endif; ?>
<div class="clr"><>
<>
<div class="clr"><>
<>
<>
<?php if ($frontpagediv == "1" && $headerType != "4") {?>
<div id="slideshow-allwrap">
<div id="slideshow-container" style="width:<?php echo $pageWidth + $outermargin; ?>px;">
<?php
$imgrootdir = "templates/".$this->template."/images/";
if ($headerType == "0" || $headerType == "2") {
echo '<img src="'.$imgrootdir.$myimage.'" alt="" />';
} elseif ($headerType == "1" || $headerType == "3") {
$picDir= $imgrootdir.$myfolder;
$picDir .="/";
if (file_exists($picDir) && is_readable($picDir)) {
$folder = opendir($picDir);
} else {
echo '<div class="message">Error! Please check the parameter settings and make sure you have entered a valid image folder path!<>';
return;
}
$allowed_types = array("jpg","JPG","jpeg","JPEG","gif","GIF","png","PNG","bmp","BMP");
$index = array();
while ($file = readdir ($folder)) {
if(in_array(substr(strtolower($file), strrpos($file,".") + 1),$allowed_types)) {array_push($index,$file);}
}
closedir($folder);
if($display == 'random') {shuffle($index);} else {sort($index);}
foreach ($index as $file) {
$finalpath = $picDir.$file;
// output
echo '<img src="'.$finalpath.'" alt="'.$file.'" />';
}
if ($showControl) echo '<div id="slcontrol"> <>';
}
?>
<>
<>
<?php } ?>
<div id="allwrap" class="gainlayout">
<div id="wrap" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;">
<?php if($this->countModules('position-2')) : ?>
<div id="pathway" class="gainlayout">
<jdoc:include type="modules" name="position-2" />
<div class="clr"><>
<>
<?php endif; ?>
<div id="cbody" class="gainlayout">
<?php if($showLeftColumn) : ?>
<div id="sidebar" style="width:<?php echo $leftColumnWidth; ?>px;">
<jdoc:include type="modules" name="position-7" style="xhtml" />
<>
<?php endif; ?>
<div id="content60" style="width:<?php echo $contentWidth; ?>px;">
<div id="content" class="gainlayout">
<jdoc:include type="message" />
<jdoc:include type="component" />
<>
<>
<?php if($showRightColumn) : ?>
<div id="sidebar-2" style="width:<?php echo $rightColumnWidth; ?>px;">
<jdoc:include type="modules" name="position-6" style="xhtml" />
<>
<?php endif; ?>
<div class="clr"><>
<>
<!--end of wrap-->
<>
<!--end of allwrap-->
<>
<div id="footerwrap" class="gainlayout">
<div id="footer" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;">
<?php if($this->countModules('position-14')) : ?>
<jdoc:include type="modules" name="position-14" style="xhtml" />
<?php endif; ?>
<>
<div id="a4j" style="width:<?php echo $pageWidth + $outermargin; ?>px;"><?php echo JText::_('TPL_A4JOOMLA-DEALER-FREE_FOOTER_LINK_TEXT');?><>
<>
</body>
</html>
-
dopo l'apertura di body prova ad eliminare (ti ricordo ancora di fare il backup!)
<div id="headerwrap" class="gainlayout">
<div id="header" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;">
<div id="logo" class="gainlayout">
<h2><a href="<?php echo JURI::base(); ?>" title="<?php echo htmlspecialchars($logoText); ?>"><?php echo htmlspecialchars($logoText); ?>[/url]</h2>
<h3><?php echo htmlspecialchars($slogan); ?></h3>
<>
<div id="headerright" class="gainlayout">
<?php if($this->countModules('position-1')) : ?>
<div id="topmenu" class="gainlayout">
<jdoc:include type="modules" name="position-1" style="xhtml" />
<div class="clr"><>
<>
<?php endif; ?>
<div class="clr"><>
<>
<div class="clr"><>
<>
<>
-
Ma quanto sei un grande da 1 a 10? 100! Ahahaha eliminando ciò che mi hai detto ho finalmente tolto l'odiatissimo header! Grazie mille ^^