• Resolved Damienov

    (@damienov)


    
    public function feedzy_add_item_padding( $itemAttr, $sizes ) {
    		$paddinTop    = number_format( ( 15 / 150 ) * $sizes['height'], 0 );
    		$paddinBottom = number_format( ( 25 / 150 ) * $sizes['height'], 0 );
    		$stylePadding = ' style="padding: ' . $paddinTop . 'px 0 ' . $paddinBottom . 'px"';
    
    		return $itemAttr . $stylePadding;
    	}
    

    please for the love of god remove this function adding inline css into the widget, I’ve been disabling this code since 2 years ago on every single update.

    At the very least make this an option to toggle on/off.

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi There,

    May I know exactly what the problem you are facing?

    Thank you.

    Thread Starter Damienov

    (@damienov)

    The code above will add an inline style tag that will override any css styling done, please remove it so I don’t have to manually remove it every time the plugin updates.

    I have to agree, the element style is impossible to override and I’d like my own padding settings.

    I added this in my functions.php which used to work but doesn’t anymore. Please advise.

    remove_filter( ‘feedzy_item_attributes’, ‘feedzy_add_item_padding’, 10, 2 );

    @pamitha,

    Thanks for your input. I’ll suggest it to our developers. However, it is not sure that we will implement the change as it affects many other plugin users too.

    You can try to change the padding using .rss_item class in Customize > Additional CSS. So that you won’t need to change the code when the plugin updates.

    @gatta2,
    please raise a new ticket for the issue. Before that, try our the CSS class above. You will need to add the CSS code using that class as per your requirement in Additional CSS section.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Please remove feedzy_add_item_padding function’ is closed to new replies.