Site logo

Archived topic

Custom text on cart page

3 replies · Started by Pedro on March 31, 2020

Viewing posts 1–4 of 4

Hello! I have added custom text in the hook "woocommerce_cart_acions"

The question is, by default the content of that hook is oriented to the right.

With a custom code I have managed to orient it to the left. (Only in the desktop version)

On mobile devices, the right-facing text continues to appear.

As in the following image: https://mega.nz/#!zwdjhYbL!zr_b-X8_sKhq9Fmf8D68JOWvwxYJGIU0drPp18-HEaU

The code I used was the following:

.woocommerce #content table.cart td.actions, .woocommerce table.cart td.actions, .woocommerce-page #content table.cart td.actions, .woocommerce-page table.cart td.actions {
    text-align: left;
}

Could you help me so that the text is also left aligned on mobile devices?

Thank you!

Hi there,

Try adding !important to your CSS.

Hi leo! Thanks for answering.

The extra code fixed the problem. Thank you!

Can you explain what that !important tag does?

You can find lots of explanations and examples of using it by Googling "css important".

This archived topic is closed to new replies.