• Resolved gramir

    (@gramir)


    Hi there

    Is there a hook to hide/remove the shop address in the header?

    Thanks, Mirco

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

    (@dpeyou)

    Hello @gramir,

    Yes, we can use a hook to insert CSS that will hide the shop address…

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_hide_shop_address', 10, 2 );
    function wpo_wcpdf_hide_shop_address ( $document_type, $document ) {
    ?>
    	.shop-address {
    		display: none;
    	}
    <?php
    }

    …but why not just remove the shop address from the settings? Once you remove the shop address, you need to follow one of the options here in order for the new PDFs to be reloaded with the new address you insert: Show PDF documents with the latest settings

    Thread Starter gramir

    (@gramir)

    Hi @dpeyou

    Thanks a lot for the fast reply and great tip, worked like a charm.

    Have a good one.
    Mirco

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hook to hide the shop address in the header’ is closed to new replies.