[Support request] Custom text on cart page

Home Forums Support Custom text on cart page

  • This topic has 3 replies, 2 voices, and was last updated 2 months ago by Leo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1221452
    Pedro

    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!

    #1221523
    Leo
    Staff
    Customer Support

    Hi there,

    Try adding !important to your CSS.

    #1222378
    Pedro

    Hi leo! Thanks for answering.

    The extra code fixed the problem. Thank you!

    Can you explain what that !important tag does?

    #1222491
    Leo
    Staff
    Customer Support

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.