css inline manage by php front End gui parameter

  • Posts: 846
  • Thank you received: 92
11 years 4 months ago #112477

i think it is a bad way to use css properties/values inline since we can't override the value


In listing_list.php we have

php code => <li class="hikashop_product_list_item" <?php echo $width; ?>>

html browser => <li class="hikashop_product_list_item" style="float:left;width:98%;">

how and where is define the " float:left;width:98%; " in the bacend gui ? . IT must be locate in the menu item type !! but find nothing


Be able to create new id/class name is usefull but let php developper define css (values) in the backend seem to be a bad thing since all have to be implemented using the CSS files .

Regard's

Last edit: 11 years 4 months ago by lionel75.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 4 months ago #112479

I agree with you. But this is different.
HikaShop allows you to specify the number of columns of listings with options in your menus and modules. Thus, the width is calculated dynamically based on how you configure the menu/module.
Normally, you should never have to touch that CSS.

Nevertheless, it doesn't mean that you can't override it. You can override with the !important CSS functionality like that:
.hikashop_product_list_item{ width: 50% !important; }

But in that case, I would recommend to rather change the listing to a two column listing in the options of your menu/module instead of trying to override it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.033 seconds
Powered by Kunena Forum