Jump to content

Global CSS non cambia ...


Recommended Posts

Ciao a tuttti, ho fatto delle modifiche al global css del mio tema (uso vers. 1.4.8.3, e il tema è quello di default) ho provato la preview in locale e non mi vede le modifiche .. anche se solo cambio lo sfondo in uno sfondo nero ... .. nelle preferenze /performances/ ho selezionato smarty obbliga la compilazione (SI) e conserva la classe blowfish (SI) ho provato anche a cambiare queste impostazioni ma refreshando non cambia nulla ... dove sbaglio????

inoltre secondo voi è normale che ho i files .tpl (che tral altro sono davvero due righe .... )nella cartella (ROOT)www/prestashop/themes/prestashop mentre i php sono in www/prestashop????????????

Link to comment
Share on other sites

il problema persiste .. nel senso che ora lo sfondo lo cambia , diventa nero... ok, ma l icona del carrello no ... eppure l ho praticamente sostituita con quella nuova! ha lo stesso nome e lo stesso percorso....... altra cosa... è normale che mi compaia questo

 

aprendo i php con dw

 

<?php

/*

* 2007-2012 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Open Software License (OSL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.org/licenses/osl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2012 PrestaShop SA

* @version Release: $Revision: 14007 $

* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*/

 

 

e io non riesca a vedere UN SOLO CODICE HTML nelle posizioni descritte da firebug ?????

 

ovvero io tutta la parte dell htm che firebug mi mostra non riesco a trovarla in nessun file .tpl come è possibile??

Link to comment
Share on other sites

... è normale che mi compaia questo

 

aprendo i php con dw

 

<?php

/*

* 2007-2012 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Open Software License (OSL 3.0)

* that is bundled with this package in the file LICENSE.txt.

...

 

e io non riesca a vedere UN SOLO CODICE HTML nelle posizioni descritte da firebug ?????

 

ovvero io tutta la parte dell htm che firebug mi mostra non riesco a trovarla in nessun file .tpl come è possibile??

 

Ciao jimmyrey, certo è normale, il codice html sta nei file .tpl del tema enon nei file .php.

 

Ps usa il sistema smarty, i tag html possono aprirsi in un file (.tpl) e chiudersi in un altro.

Poi ci sono i moduli che anche loro usano smarty e appendono il loro codice agli appusiti ganci presenti nei file .tpl del tema.

Poi c'è la compressione, la compilazione e la cache, in pratica se un modulo (es: blockcategories) è stato progettato per tenere la sua compilazione in cache per un anno (365 giorni è indicato nel blockcategories), tu non vedrai le modifiche neanche se ricompili e svuoti la cache del browser.

 

Chi volesse studiare il sistema smarty, qui trova la documentazione ufficiale in italiano: http://www.smarty.net/docsv2/it/ eventualmente anche in PDF.

 

Riguardo il caso specifico del tuo file global.css le modifiche di questo file devono essere subito visibili ricaricando la pagina del browser.

Ovviamente, come ha correttamente suggerito prestaitalia, se carichi un'immagine con lo stesso nome, è possibile che tu debba anche svuotare la chache del browse e non ricaricare semplicementre la pagina.

 

Ti auguro buon lavoro e buono studio :)

Link to comment
Share on other sites

ok sono riuscita a vedere i cambiamenti ... era la cache del browser.

Comunque io mi sono accertata che aprendo il file .tlp comunque mi compare un codice non proprio HTML .... ed ho aperto un footer.tpl contenuto all interno del mio tema ! ... come posso fare per modificarlo, devo usare smarty?

Link to comment
Share on other sites

Per modificare il file tpl te la cavi con un normale editor di testo, alla brutta dovrebbe andare bene il blocco note di windows, io comunque uso Textpad con cui mi trovo molto bene.

 

Ricorda che se vuoi vedere i cambiamenti dopo ogni modifica devi avere impostato backoffice: Preferenze - Prestazioni: Obbliga Compliazione = SI, sta all'inizio della pagina.

Link to comment
Share on other sites

per farmi capire meglio riPOSTO il codice che vedo nel .tpl del footer ad esempio

 

 

 

{*

* 2007-2012 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Academic Free License (AFL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.org/licenses/afl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2012 PrestaShop SA

* @version Release: $Revision: 14008 $

* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*}

 

{if !$content_only}

</div>

 

<!-- Right -->

<div id="right_column" class="column">

{$HOOK_RIGHT_COLUMN}

</div>

</div>

 

<!-- Footer -->

<div id="footer">{$HOOK_FOOTER}</div>

</div>

{/if}

</body>

</html>

 

 

 

come agisco? non ho un "contenuto" .. io ero abituata alla separazione formattazione -contenuto ... qui non ho un codice modificabile con dei dati modificabili ... questo intendo ....

Link to comment
Share on other sites

Bè quello che hai messo è HTML.

 

Prova a inserire, prima della tage </BODY> una scritta per esempio:

 

CIAOOOO

 

salva il file e vedrai che la scritta esce in fondo alla pagina!

 

Altro esempio, se vuoi inserire qualcosa nel footer il posto migliore dove metterlo è probabilemente qui:

 

<div id="footer">{$HOOK_FOOTER}

qui il mio contenuto per il footer

</div>

 

Il marcatore {$HOOK_FOOTER} lascialo dov'è: il sistema Smarty lo sostituisce a run time e lo usa per inserire in modo automatico tutti quegli oggettini che sono stati configurati per apparire nel footer.

 

Il meccanismo di questi marcatori tra cui anche i vari {if } fa riferimento al famoso Smarty, forse puoi leggerti qualcosa a riguardo sul sito ufficiale per capire come funziona.

Link to comment
Share on other sites

  • 6 months later...

Ciao a tuttti, ho fatto delle modifiche al global css del mio tema (uso vers. 1.4.8.3, e il tema è quello di default) ho provato la preview in locale e non mi vede le modifiche .. anche se solo cambio lo sfondo in uno sfondo nero ... .. nelle preferenze /performances/ ho selezionato smarty obbliga la compilazione (SI) e conserva la classe blowfish (SI) ho provato anche a cambiare queste impostazioni ma refreshando non cambia nulla ... dove sbaglio????

inoltre secondo voi è normale che ho i files .tpl (che tral altro sono davvero due righe .... )nella cartella (ROOT)www/prestashop/themes/prestashop mentre i php sono in www/prestashop????????????

 

per fare modifiche ai colori etc..devi agire sul custom.css

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...