Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Victor,
    If you want a script for this (to apply conditionally to multiple installations), you can use the following script in the theme functions.php:

    
    add_filter( 'wpo_wcpdf_shop_name_settings_text', function( $shop_name, $document ){
    	if ( $document->has_header_logo() ) {
    		$shop_name = '';
    	}
    	return $shop_name;
    }, 10, 2 );
    

    But if it’s only a single site where you want to do this, it’s easier to just put a space character in the “Shop name” settings (and enable “Test mode” while testing with existing invoices), this will prevent the plugin from applying the fallback to the the site title.

    Thread Starter vhfilgueiras

    (@vhfilgueiras)

    @ewout thanks for the quick reply. It worked but now the logo is not centered, is there a way to customize it? It is a single site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove site name when there is a logo’ is closed to new replies.