Background Image

Post Reply
maxv
Jr. Bludit
Posts: 6
Joined: Wed Mar 11, 2020 6:05 pm

Hello,
I use blekathlon theme, I noted that uploaded images are modified and it's added a black background on transparent parts. How can I change background color to blue?
User avatar
Edi
Site Admin
Posts: 2200
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Can you please give the address of the installation.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
maxv
Jr. Bludit
Posts: 6
Joined: Wed Mar 11, 2020 6:05 pm

dbelov
Ssr. Bludit
Posts: 15
Joined: Mon Jan 08, 2018 10:01 am
Contact:

maxv wrote: Thu Mar 12, 2020 2:19 pm Here the address: http://www.rometec.it/bludit/
Hi, maxv
Try to use jpg for images and with size bigger than your thumbnail setting. This will fix the problem.
maxv
Jr. Bludit
Posts: 6
Joined: Wed Mar 11, 2020 6:05 pm

Unfortunately I can't do it, so what part of bludit or theme take the image and add the black background?
dbelov
Ssr. Bludit
Posts: 15
Joined: Mon Jan 08, 2018 10:01 am
Contact:

maxv wrote: Fri Mar 13, 2020 12:35 pm Unfortunately I can't do it, so what part of bludit or theme take the image and add the black background?
Ok, then change this line
https://github.com/blthemes/Blekathlon/ ... me.php#L19

Code: Select all

<?php $coverImage = $helper->get_thumb();?>
to

Code: Select all

<?php $coverImage = $page->coverImage();?>
maxv
Jr. Bludit
Posts: 6
Joined: Wed Mar 11, 2020 6:05 pm

It works! Thank you!
Post Reply