M
M
maiskiykot2020-06-10 12:08:46
opencart
maiskiykot, 2020-06-10 12:08:46

How to hide a block in Opencart 3?

Faced the horrors of Opencart 3 markup. I make changes to the template and styles, but the desired effect is not achieved. Tell me how to apply the elementary display: none to the div tag? The tag is displayed where necessary, but styles are not applied to it by id. Nearby other styles work out. Only direct placement of styles in the template works

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2020-06-10
@Levitskyi

There are no problems with style changes in Opencart, if something does not work, then this is 90% your mistake.
1) Make sure your styles are last in the order. Those. if you apply your style, and then the standard Opencart css is included, it will override your style.
2) Make sure there are no inline styles after your style that overlap yours.
3) Make sure block styles are not changed from js scripts.
4) Try to specify for the test display: none !important; - if it works, see points 1,2,3.
5) If possible - throw off the link. I'm sure your problem is solved in 60 seconds.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question