Background Image

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

Wed Mar 11, 2020 6:10 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: 1843
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Wed Mar 11, 2020 7:41 pm

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: 5
Joined: Wed Mar 11, 2020 6:05 pm

Thu Mar 12, 2020 2:19 pm

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

Thu Mar 12, 2020 4:01 pm

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: 5
Joined: Wed Mar 11, 2020 6:05 pm

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?
dbelov
Ssr. Bludit
Posts: 15
Joined: Mon Jan 08, 2018 10:01 am
Contact:

Fri Mar 13, 2020 10:55 pm

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: 5
Joined: Wed Mar 11, 2020 6:05 pm

Tue Mar 17, 2020 11:43 am

It works! Thank you!
Post Reply