Jump to content

[SOLVED] change manufacturer-list width


gregultra

Recommended Posts

So, with some help from the forum, i can get rid of the left column on the manufacturer-list only, by modifying the ManufacturerController.php

A little problem : how can i change the width of the center column now?

 

I doubt i can do it in CSS, since manufacturer and manufacturer-list have the same ID.

 

Can i do it in ManufacturerController.php?

 

Edited by gregultra (see edit history)
Link to comment
Share on other sites

in initcontent() function in FrontController.php

if (isset($_GET['id_manufacturer'])){
$this->context->smarty->assign('manufacturerpage',true);
}

then in template file in body class="" section you can use:

{if $manufacturerpage}

manufacturerpage

{/if}

 

then you can use in css styles definition for center clumn:

 

.manufacturerpage #center_column {width:99999px;} ;)

Link to comment
Share on other sites

-i put 

 

if (isset($_GET['id_manufacturer'])){

$this->context->smarty->assign('manufacturerpage',true);
}

 

in : classes/controller/FrontController.php

 

- then

{if $manufacturerpage}

manufacturerpage

{/if}

in <body class=" "> in the header.tpl 

 

-then try to change via CSS, but it's not working.

Am i putting it in the right tpl?

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