Support » Plugin: My Custom Functions » Styling Echoed Text

  • Resolved kayla

    (@kaylaz)


    Hello,

    I am using this code to call the product title to display above the product image in WooCommerce.

    function sv_add_text_above_wc_shop_image() {
        echo  the_title();
    }
    add_action( 'woocommerce_before_shop_loop_item_title', 'sv_add_text_above_wc_shop_image', 9 );
     

    How can I format the color, size, and alignment of the text?

    I have tried many things including p, div, style, and font both inside the function and outside the function.

    http://funkydreamerstorytime.com/product-category/podcasts4kids/

  • The topic ‘Styling Echoed Text’ is closed to new replies.