Support » Plugin: Email Templates » Padding Around Logo Image

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support gonzalesc

    (@gonzalesc)

    Hi.

    The CSS external code does not work whit email, it must be inline.

    To logo image, we have a hook, maybe it can help you.

    <?php
    function timersys_logo_attr($attr = []) {
    
    	$attr = [ 'style' => 'max-width:100%; padding:0;' ];
    	
    	return $attr;
    }
    add_filter('mailtpl/templates/header_logo_attr', 'timersys_logo_attr');

    Regards

    snowme

    (@snowme)

    I’ve tried adding it to my functions.php, but it doesn’t seem to have any effect. Does this go in my functions.php or does this need to be added to a file in the actual plugin directory?

    Plugin Support gonzalesc

    (@gonzalesc)

    Hi.
    Yes, this code must be in functions.php

    The code is an example. Maybe you need to add other CSS rules, tell me, what you need to do with the logo? Is it very big? or you need to center it?

    regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.