• Resolved AlanBee

    (@alanbee)


    Hi,

    I have a layout in maid that I would like to implement to the single pruduct page, but can not find any info about it.

    I know that I can use hooks, but hooks provide only a line after line display. So for example, the title will come first and price second and add to cart button thread. I would like to have different things aligned next to each other in the same line.

    For example: The price and the add to cart button.

    Any ideas? I really need help here….

    Thanks,
    Alan

Viewing 4 replies - 1 through 4 (of 4 total)
  • You should override woocommerce template: https://docs.woocommerce.com/document/template-structure/

    Thread Starter AlanBee

    (@alanbee)

    Thanks.

    I understand that part, but how can I actually do the different design? Is there any ready made templates that I can use?

    Thank you,
    Alan

    I’ve not seen any ready made templates. The thing is there are so many themes and so many required customisations that it wouldn’t be worthwhile for anyone to prepare some. You’ll need to start with your existing WooCommerce or Theme template, copy that to your child theme and modify the copy.

    However, if you just want the same elements but in different places, you can do that with a series of remove_action() and add_action() calls. Note the 3rd parameter in these calls is the priority parameter. Your remove_action()s must have the same priority parameter as the corresponding add_action()s. However, your new add_action()s can have different priority parameters. For example, you can change a 10 to a 50 to move that element further down. With enough removes and adds you can even put the picture on the right and the text on the left.

    Some custom css should be able to put one element at the side of another where they are currently one above the other.

    Thread Starter AlanBee

    (@alanbee)

    Hi,

    Thank you all. Yes, the only way is to create that template myself…

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘woocommerce inline hooks’ is closed to new replies.