• Resolved sushantwp

    (@sushantwp)


    I have created a custom plugin for woocommerce and the question is can I create a custom Woocommerce checkout page with a fixed layout? so that no other plugin and theme can change my layout. same for the other pages.

    I am using the woocommerce_locate_template and template_include hooks to enable my custom template.

    But still, some plugins and themes change my fixed layout. Is this good practice if I use the !important in the style code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @sushantwp,

    Typically, it’s not always recommended that you use !important in you style code.
    The reasoning behind this is due to it causing trouble if another theme or plugin tries to also alter the styling of certain elements you’ve applied this to.

    As you’ve mentioned though, this is exactly the behavior you’re trying to achieve.
    This type of scenario is certainly one that I would suggest applying !important to certain style elements.
    This should result in other plugins and themes not being able to alter those elements any further.

    Thank you,
    Joey

    We haven’t heard back from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any further questions!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I create custom Woocommerce checkout with fixed layout’ is closed to new replies.