Jump to content

How to move homeslider to right or left column on every page?


Recommended Posts

I made some modifications in both file tpl and module (prestashop 1.6+) and it appears on right column but only on homepage. When I click anything else it disappears. 


In homeslider.tpl I removed this line:

{if $page_name =='index'}

In module/homeslider/homeslider.php I added the right column hook:

    public function hookdisplayRightColumn($params)
        return $this->hookDisplayHome();

and also removed from hookdisplayHeader($params) function

if (!isset($this->context->controller->php_self) || $this->context->controller->php_self != 'index')

what else I need to change to make it work?

Edited by lutol (see edit history)

Share this post

Link to post
Share on other sites



Just wondered if you have had a look at the popular free slider





Thank you, I'm new to prestashop and I didn't know about it. I've already downloaded and tested - I like it. I'd like also someone to show me how to solve the problem because I've spent some time thinking, and I'm really curious why this isn't showing on other pages only home page.

Share this post

Link to post
Share on other sites

Hello again


How have you configured the module? is it set up for displaying in the Left/Right column




If you have set the module up correctly then have you configured the Left/Right columns in:


Back office > Preferences > Themes > Advanced settings




This is how it looks for me on Category Page





Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More