Jump to content

file js e css in pagine cms


ilario

Recommended Posts

ciao a tutti

 

mi sapreste dire come posso richiamare dei file css e js  in una pagina cms  prestashop 1.7

 

io ho provato inserire questo codice in cmsController.php ma non funziona

public function setMedia()
    {
        parent::setMedia();
        if ((int)Tools::getValue(‘id_cms’) == 32) {
		$this->addJS(_THEME_JS_DIR_.‘intro.js’);
		$this->addJS(_THEME_JS_DIR_.‘pluginsintro.js’);
		$this->addCSS(_THEME_CSS_DIR_.‘styleintro.css’);
		$this->addCSS(_THEME_CSS_DIR_.‘queriesintro.css’);
		$this->addCSS(_THEME_CSS_DIR_.‘animatedintro.css’);
	
		}
    }
 

grazie mille

ilario

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...