Joomla.it Forum
Joomla! 3 => Joomla! 3 => : Mario_2435 12 Jul 2016, 19:44:41
-
Salve, ho installato un template ma lato sorgente pagina manca il tag lang= it-IT (Joomla versione 3.5.1)
adesso è così:
<!DOCTYPE html>
<html dir="ltr">
<head>
Dovrebbe essere se non erro.
<!DOCTYPE html>
<html dir="ltr" lang="it-IT">
<head>
Ho cercato parecchio ma non ho trovato nulla in merito. Help! Grazie!
-
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
................................................................................................
</head>
-
Salve Giuseppe, grazie per il codice! se non erro dovrei inserirlo nel file index.php presente nella cartella del template, ma dove esattamente non riesco a capirlo, purtroppo sono digiuno di codice :-(
Se può servire inserisco il codice del file index.php del template.
Grazie per la collaborazione!
<?php
defined('_JEXEC') or die;
?>
<?php /*BEGIN_EDITOR_OPEN*/
$app = JFactory::getApplication('site');
$templateName = $app->getTemplate();
$ret = false;
$templateDir = JPATH_THEMES . '/' . $templateName;
$editorClass = $templateDir . '/app/' . 'Editor.php';
if (!$app->isAdmin() && file_exists($editorClass)) {
require_once $templateDir . '/app/' . 'Editor.php';
$ret = DesignerEditor::override($templateName, __FILE__);
}
if ($ret) {
$editorDir = $templateName . '/editor';
require($ret);
return;
} else {
/*BEGIN_EDITOR_CLOSE*/ ?>
<?php
/**
* Template for Joomla! CMS, created with Designer.
* See readme.txt for more details on how to use the template.
*/
$themeDir = dirname(__FILE__);
require_once $themeDir . DIRECTORY_SEPARATOR . 'functions.php';
// Create alias for $this object reference:
$document = $this;
$document->head = "<jdoc:include type=\"head\" />";
// Shortcut for template base url:
$templateUrl = $document->baseurl . '/templates/' . (isset($editorDir) ? $editorDir : $document->template);
$document->templateUrl = $templateUrl;
Designer::load("Designer_Page");
// Initialize $view:
$this->view = new DesignerPage($this);
echo $this->view->renderTemplate($themeDir);
?>
<?php /*END_EDITOR_OPEN*/ } /*END_EDITOR_CLOSE*/ ?>
-
nell'index se fosse un template standard, ma vedo che non è così, quindi non saprei.
-
Ecco... mi pareva! Grazie Giuseppe, molto gentile e disponibile.
Sono due settimane che tento di sistemare diversi problemi... non ne posso più! Il sito è in produzione e vorrei risolvere in tempi brevi... ho anche da sistemare diversi errori evidenziati da structured-data/testing-tool di Google!
-
...cambia template! ;D ;)