• Hi,

    I’ve been trying out your plugin and was wondering if there is a way to get rid of the padding around the logo image. I’ve tried using the custom CSS section, but it doesn’t seem to change anything.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter 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?

    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)
  • The topic ‘Padding Around Logo Image’ is closed to new replies.