Jump to content

Sp0cK

New Members
  • Posts

    5
  • Joined

  • Last visited

Sp0cK's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This is probably the lamest question you will see today, but for me the hardest to answer: sprintf( __( '%1$s起', 'woocommerce' ) I would like to style the character 起 with a span sort of like this: '%1$s'<span style='font-size: 10px;'起'</span>, 'woocommerce' ) I'm pretty sure I've got my quotes all wrong in this example. How do I do this the correct way if possible at all? It's on a live site so i can't play around with it too much... Thanks! The full line is: $saleprice = $prices[0] !== $prices[1] ? sprintf( __( '%1$s起', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.