- This topic has 4 replies, 2 voices, and was last updated 4 years, 1 month ago by
Tom.
-
AuthorPosts
-
April 25, 2019 at 3:27 am #878823
Mathias
I am working on a big client project. Today I installed WMPL and started to translate the website. I also translated the header element I use for the front page and another one for the static pages.
I recently noticed that the featured and fallback image that I used in the elements is not shown on the translated pages.
Here is the CSS code:
German page:
.page-hero { background-color: rgba(255,255,255,0.6); background-image: url(https://preview.dreiling-maschinenbau.com/wp-content/uploads/2009/07/vollautomatische-montagevorrichtung-kurbelwellengehaeuse.jpg); background-size: cover; background-image: linear-gradient(0deg, rgba(255,255,255,0.6),rgba(255,255,255,0.6)), url(https://preview.dreiling-maschinenbau.com/wp-content/uploads/2009/07/vollautomatische-montagevorrichtung-kurbelwellengehaeuse.jpg); background-repeat: no-repeat; color: #35657c; text-align: center; box-sizing: border-box; }
Translated english page:
.page-hero { background-color: rgba(255,255,255,0.6); color: #35657c; text-align: center; box-sizing: border-box; }
It seems like the original background is not set on the translated element. Maybe this is a bug?
April 25, 2019 at 7:50 am #879270Tom
Lead DeveloperLead DeveloperThanks for reporting this – I’ll do some testing and will get back to you ASAP.
April 25, 2019 at 2:53 pm #879700Tom
Lead DeveloperLead DeveloperJust testing this. Elements use the featured image where possible. When you create your Element in another language, be sure to check this box before you hit publish: http://prntscr.com/ngyi90
If you do that, the image should come along with the rest of the settings.
Let me know ๐
April 26, 2019 at 5:53 am #880308Mathias
Hi Tom,
your hint was right: I had to check this box and after that the featured image was shown.
But I also have some pages with a fallback image in my element. The fallback image is not shown on the page of the other language. I think it would be important that the fallback image is used for all languages as some editors will have pages without a featured image. If this image is part of the frontend design there will be a ugly white space.
Can you fix this in GP Premium 1.8.2?
April 26, 2019 at 9:24 am #880646Tom
Lead DeveloperLead DeveloperHi there,
The “fallback” image defined inside the Hero settings? If so, that just sets the featured image of the Element, so it should get copied to your language.
Does the image display in the settings of your other language, but not on the frontend?
Let me know ๐
-
AuthorPosts
- You must be logged in to reply to this topic.