Translate 0 originals (0 words) to Hungarian Glossary
Prio | Original string | Translation | — |
---|
Legend:
Current
Waiting
Fuzzy
Old
With warnings
Export strings as
Description
Scenario 1: For sites showing a static page as homepage
Current Flow
When user clicks on the Activate Theme button, it will:
- Show a popup telling user “XXX will automatically change your homepage layout. Your current homepage will become a draft. Would you like to continue?” [Screenshot 1]
When user continues activating the theme, the following happens behind the scenes:
- Existing homepage is moved into Draft.
- A new homepage might [3] be created by the theme and set to Published.
- This new homepage is set immediately as your homepage. [2]
After the theme is activated:
- A popup is shown with the button “Edit Homepage” as the next step for the user. [Screesnhot 2]
- The homepage setting remains “A Static Page”. [1]
Proposal for Scenario 1
- No change. Keep everything the way it is.
Scenario 2: For sites showing latest posts as homepage
Current Flow
When user clicks on the Activate Theme button, it will:
- Show a popup telling user “XXX will automatically change your homepage layout. Your current homepage will become a draft. Would you like to continue?” [Screenshot 1]
When user continues activating the theme, what happens next is not the same as what the popup message described, the following happens behind the scenes:
- Since there is no existing page being set as homepage [4], unlike in scenario 1, no existing page will be moved to Draft.
- A new homepage might [3] be created by the theme, unlike in scenario 1, the publishing status of this page is set to Draft.
- This new homepage post, unlike in scenario 1, is not set immediately as your homepage. [2]
After the theme is activated:
- The popup is shown with the button Customize Site as the next step for the step (unlike in scenario 1).
- The homepage setting remains “Your Latest Posts”. [1]
Proposal for Scenario 2 (Option 1)
This PR implements option 3, but expand for details about option 1
- Change accuracy of popup message to describe what is actually happening behind the scenes.
- Hint the user to switch from latest posts to homepage created by theme (and also they tell them how to do so) if that is what they desire.
Proposal for Scenario 2 (Option 2)
This PR implements option 3, but expand for details about option 2
- Use the same homepage creation flow in scenario 1.
- If user does not have a page set to show latest posts [5]:
- Create an empty page.
- Set this empty page as the page to show latest posts.
- Set this page as the page to show latest posts [5] [Screenshot 4].
Proposal for Scenario 3 (Option 3)
- Use the same homepage creation flow in scenario 1.
- But do not modify the
show_on_front
setting so user keeps their Show Latest Posts option.
Challenges
- How do you determine if a theme is going to create a homepage since some themes does it, some themes don’t [3]?
- If the theme creates a homepage, how do you retrieve the id of this newly created page?
- How do we resolve possible slug name conflict for empty page created to display latest posts? #39110 (comment)
Footnote
- [1] The config
show_on_front = page|posts
determines whether A Static Page or Your Latest Posts should be used as home page settings. - [2] The config
page_on_front = pageId
determines which page should used as the homepage. - [3] Some themes like Barnsbury and Dalston create a homepage, some themes like TwentyTwenty does not create a homepage.
- [4] Even though there is no page being set as static page, the config
page_on_front
may still contain the id of the previous set page. - [5] The config
page_for_posts = pageId
determines which empty page should be used to display list of blog posts.
Screenshots (for reference)
Screenshot 1 – Pre-activation popup
Screenshot 2 – Post-activation popup if the user sets an existing static page as homepage.
Screenshot 3 – Post-activation popup if the user sets to show latest post as homepage.
Screenshot 4 – Where an empty post can be set to show list of posts in customizer
Fixes #39110
Unfortunately, no screenshots were provided by the developer.