Jump to content

homeslider reduce it


Recommended Posts

yes, I'm talking about the default slider.What line I must change in php files cause the php file are numerous:

in upgrade i have those:

- HomeSlide.php

-homeslider.php

- ajax_homeslider.php and so one ...

What php file i must change and how?

 

Thanks

Link to comment
Share on other sites

open the homeslider.php file

add there function to handle left / right columns:

 

public function hookleftcolumn()
{
 $this->context->controller->addJS($this->_path.'js/jquery.bxSlider.min.js');
 $this->context->controller->addCSS($this->_path.'bx_styles.css');
 $this->context->controller->addJS($this->_path.'js/homeslider.js');
 return $this->display(__FILE__, 'homeslider.tpl', $this->getCacheId());
}

 

+

 

public function hookrightcolumn()
{
 $this->context->controller->addJS($this->_path.'js/jquery.bxSlider.min.js');
 $this->context->controller->addCSS($this->_path.'bx_styles.css');
 $this->context->controller->addJS($this->_path.'js/homeslider.js');
 return $this->display(__FILE__, 'homeslider.tpl', $this->getCacheId());
}

 

then transplant module under the modules > positions tab in your back office

Link to comment
Share on other sites

i try all of this but that doesn't work. my image are smaller than before and the slider appears only once in left column.

My be I need the right lenght and the right width to put this module on the left column.

thanks

Link to comment
Share on other sites

×
×
  • Create New...