I know it's out of your scope, but can you guide me or give me some hints on how I can style this text wrapped on php?
I'm a self-taught web designer and I tried everything but cannot. I'm just trying to give some space above the text I just added on the Additional Information Tab. The text appears really closed to the above line and is difficult to read it.
Thank you for contacting WPML Support. You should be able to achieve it by following the below steps:
1. Wrap the text in div tag and add the class selector to apply the CSS to that selector, so here will be the updated code:
<?php
add_action('woocommerce_product_additional_information', 'add_custom_content_to_additional_info'); function add_custom_content_to_additional_info() { _e('
<div class="notice-disclaimer">*Image Disclaimer: Due to the digitalization of the image, the display technologies and the lighting, small variations of product color may occur.</div>
', 'insert-headers-and-footers'); }
2. Now, you can apply any style using the “notice-disclaimer” selector by adding the below CSS to the custom CSS section of the theme:
.notice-disclaimer {
margin-top: 10px;
}
I just added top margin CSS, you may adjust it according to your needs.
Please understand that I'm helping you here with an issue that is out of the scope of our support forum and we will not be able to support the fix that we give you in the future. Because the theme or our code might have changed, so please always be aware of this.