CSS not working with text I added via php
-
Hi!
I added some additional text via php. I added the code to customer-on-hold-order.php. The code I added is:
<div id="indent"> <p><?php esc_html_e( '?' , 'woocommerce' ); ?></p> </div> <div id="sklic"> <p><?php esc_html_e( 'Referenca (sklic): SI 00 ' . $order->get_order_number() , 'woocommerce' ); ?></p> </div>
I added this code because I need to display a reference number. It currently looks like THIS, however I need it to look like THIS
I added custom style to it, wrote some CSS, so it looked alright in the preview. However, when I sent the email, the CSS didn’t do anything and it was like it wasn’t even there. I added this CSS:
#indent { transform:translate(25px , 1000px); pointer-events: none !important; } #sklic { transform:translate(40px , 1000px) !important; }
Hope we manage to sort this out.
Kind regards
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘CSS not working with text I added via php’ is closed to new replies.