In my spare time I am trying to create a startup. But not familiar with php. When customising code I came across the following problem:
I just want to add the echo "Including shipping" behind the price of a product on my page. But now the "including shipping" echo is getting the css from class="price" applied, I would like my custom echo to be a normal paragraph and keep the class="price" to the price. The two have to stay behind each other.
Code looks like this:
<p class="price"><?php echo $product->get_price_html(); ?> <?php $customshippingtext = " Including shipping "; echo $customshippingtext; ?> </p>
Use a span within the p tag with another class, like this:
<p class="price"><span class="another-class"> </span></p>