Background Image

Post Reply
maxv
Ssr. Bludit
Posts: 15
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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Can you please give the address of the installation.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
maxv
Ssr. Bludit
Posts: 15
Joined: Wed Mar 11, 2020 6:05 pm

dbelov
Ssr. Bludit
Posts: 15
Joined: Mon Jan 08, 2018 10:01 am
Been thanked: 1 time
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
Ssr. Bludit
Posts: 15
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
Been thanked: 1 time
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
Ssr. Bludit
Posts: 15
Joined: Wed Mar 11, 2020 6:05 pm

It works! Thank you!
User avatar
Benhart
Jr. Bludit
Posts: 1
Joined: Mon Jun 14, 2021 3:41 pm

There should be a code.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Benhart wrote: Wed Sep 29, 2021 1:58 pm There should be a code.
What do you mean with this?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply