Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter AviationPro

    (@aviationpro)

    Seems to be fixed 🙂 The following code in the Sydney theme woocommerce.php causes this error. I removed it for now. Perhaps someone can shed some more light on this in the future:

    /**
     * Add SVG cart icon to loop add to cart button
     */
    function sydney_add_loop_cart_icon() {
    
        global $product;
    
        $type = $product->get_type();
        
        if ( 'simple' == $type ) {
            $icon = '<span><i class="sydney-svg-icon">' . sydney_get_svg_icon( 'icon-add-cart', false ) . '</i></span> ';
        } else {
            $icon = '';
        }
    
    	return sprintf(
    		'<div class="loop-button-wrapper"><a href="%s" data-quantity="%s" class="%s" %s>' . $icon . '%s</a></div>',
    		esc_url( $product->add_to_cart_url() ),
    		esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ),
    		esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ),
    		isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '',
    		esc_html( $product->add_to_cart_text() )
        );  
    
    }
    add_filter( 'woocommerce_loop_add_to_cart_link', 'sydney_add_loop_cart_icon' );
    • This reply was modified 5 years, 6 months ago by AviationPro.
    Thread Starter AviationPro

    (@aviationpro)

    Wow, great work Magnus! Thanks for taking the time, I will now add it to my website.

    And indeed, it happens for me on every page as well despite having a site title in the general settings.

    Thread Starter AviationPro

    (@aviationpro)

    Mine is set to static as well and I experience the issue right now. In which file can I find the thinkup_input_wptitle() line in version 1.1.3?

Viewing 3 replies - 1 through 3 (of 3 total)