Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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 :-/

    #1263848

    Hey 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,
    Mike

    #1264701

    Hi 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.
    #1264761

    Hi,
    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
    2020-12-03_055344.jpg
    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,
    Mike

    #1264787

    Hi 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
    leo

    #1264984

    Hi,
    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,
    Mike

    #1264992

    Hi 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

    #1265011

    Hi,
    I tried to watch your video but I don’t have access, please change the file permissions.

    Best regards,
    Mike

    #1265015

    Hi,
    what a shame :-/
    permission granted.
    leo

    #1265183

    Hi,
    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:
    2020-12-05_074143.jpg
    Please clear your browser cache and check.

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.