-
AuthorPosts
-
November 24, 2020 at 7:30 pm #1262791
We have added a blog site which should display an overview of our upcoming events. I have created a side (Blogseite) which should be used for the content of the Blog elements.
On our website WPML is installed and this works quite well. For German – the default lang – the blog content is displayed (Sidebar and main). For English we see the blog element in the side bar but not in the overview part.
Could you please advise us what kind of setting is missing so we can display the content?
Technical q: When I inspect the Enfold settings I see that I can select a side. The selected web site is ID=2867 (HTML-inspector). But since in the English translated web site has ID=2937 it is clear that it won’t be displayed nor the content shown. But I have no clue how to set it properly :-/
November 30, 2020 at 2:25 am #1263848Hey kwanumzen,
Sorry for the very late reply and thanks for the login, I see that in the [DE] theme settings your “Blog” is set to the page “BlogSeite” WPML copied this page to “/en/blogseite/” but since the [DE] “Blog” page is actually empty because it’s a special “page” so that WordPress can show the posts, the new page is empty and WordPress doesn’t know to show posts there.
So the solution is to go to “/en/blogseite/” and in the admin toolbar you can edit the page, then use the Advanced Layout Builder to add a Blog element to this page.
Now I imagine you only want to show [EN] posts on this page, so you will need to translate your one [DE] post and assign a taxonomy for the [EN] posts so you can choose this in the blog element options.
There is a chance that translating your posts will double the ones that show on the [DE] page, if this happens then I would recommend deactivating the “And where do you want to display the Blog?” option for the blog in the theme settings, and then go to your “BlogSeite” page and edit it with the Advanced Layout Builder and add the blog element with a different taxonomy chosen.
This way each “blog” page will show the correct language posts.Best regards,
MikeDecember 3, 2020 at 9:40 am #1264701Hi Mike,
well I thought I have resolved the issue but seems like not. I followed your step but now I have the issue that on the English blogsite there is no overview but the very first page shown fully.
My previous tests succeeded by showing icons. But I have no clue why this happens now – fully displaying the first entry.
Any hints?
An additional q: Although I’m aware that a new request would be great nevertheless a quick q: When I want to apply CSS styles independent from the language settings – where to put them?
thx
leo- This reply was modified 3 years, 11 months ago by kwanumzen.
December 3, 2020 at 1:30 pm #1264761Hi,
I took a look at your [EN] page and found that your “blog element” was set to show the full content, I changed it to the excerpt.
Please check
To apply CSS styles independent from the language settings, add your css to the WordPress > Customize > Additional CSS field.
To apply CSS styles based on the language settings, with WPML installed there is a theme panel for each language, each with it’s own Quick CSS.
If you are writing css for a specific language try using a language selector like this:html[lang="en-US"] article .entry-title a { color: red !important; } html[lang="de-DE"] article .entry-title a { color: green !important; }
Best regards,
MikeDecember 3, 2020 at 3:27 pm #1264787Hi Mike,
thx for the hint about the CSS. This should help.
About the initial issue: Yeah, it might be that there was this setting. But nevertheless the result remains the same as before. The blogseite still shows full content. I’ve tested as well with incognito window.
Do I miss something?
kr
leoDecember 4, 2020 at 12:38 pm #1264984Hi,
Thank you for the feedback, I checked “/en/blogseite/” & “/blogseite/” and both pages look like excerpts to me.
Please see the screenshots in Private Content area.Best regards,
MikeDecember 4, 2020 at 1:02 pm #1264992Hi Mike,
Delete cache and force reload in the browser (CTRL-F5) helpeld in some way. But finally I still have the problem. I made a little video to show what is happening. While it works perfectly in German I have in English the problem that I get redirect to the full content side. On my mobile it works as expected.
So is it just my development environment? I’m working on a Linux machine – nevertheless Chromium and Firefox should behave the same way – independent from the system.
Any idea whom to blame? :-)
leo
December 4, 2020 at 2:08 pm #1265011Hi,
I tried to watch your video but I don’t have access, please change the file permissions.Best regards,
MikeDecember 4, 2020 at 2:24 pm #1265015Hi,
what a shame :-/
permission granted.
leoDecember 5, 2020 at 2:44 pm #1265183Hi,
Thanks for the video, at the end you didn’t scroll down to show if the posts were excerpts or full content, but I believe what you are seeing is on the [EN] page the posts are full width and not a grid like on your [DE] page.
I adjusted this for you on the [EN] page:
Please clear your browser cache and check.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.