Add class to main container

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #134415 by Russell Leigh
Add class to main container was created by Russell Leigh
I want to add the class "container" to the eshop main container div <div id="eshop-main-container" class="eshop-container container">

But this is hard coded in to the php of the file "administrator\components\com_eshop\libraries\mvc\view.php"

How can I override this layout?

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

More
3 years 11 months ago - 3 years 11 months ago #134549 by quantumgraphics
Replied by quantumgraphics on topic Add class to main container
I guess I just have to do this with css?
Last edit: 3 years 11 months ago by quantumgraphics.

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

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
3 years 11 months ago #134559 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Add class to main container
Hi Russell Leigh and quantumgraphics,

Currently, there is no option to overwrite the file administrator\components\com_eshop\libraries\mvc\view.php. If you want to add style for that page, please use id instead of class.

Hope that it will work for you.

Sincerely, Giang

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

  • Russell Leigh
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 6 months ago #138377 by Russell Leigh
Replied by Russell Leigh on topic Add class to main container
How can I add an ID to a hard coded element? Why is this hard coded and not editable in a layout override as according to joomla specifications?

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

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
3 years 6 months ago #138908 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Add class to main container
Hello Russell,

Currently, this can not be overwritten. Only all of layouts of EShop can be overwritten.

Sincerely, Giang

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

Moderators: Giang Dinh Truong