Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AG front page design #18

Open
danielappelt opened this issue Oct 21, 2016 · 2 comments
Open

AG front page design #18

danielappelt opened this issue Oct 21, 2016 · 2 comments

Comments

@danielappelt
Copy link
Member

Each AG has to maintain it's own description in some way. For the network's front page we use a separate static page which is loaded into the network's front page.
Here, we want to avoid loading a static page using a magic id. With a separate page template (theme sub folder templates/) any static page can be set to look and behave as an AG front page. Which page is used in the end can be customized in the backend.

@danielappelt
Copy link
Member Author

As it turned out, the file front-page.php will be used (if existing) to render the front page regardless whether it is set to be a static page or not. That is why, for the AG front pages we can simply modify this template. See also: https://www.smashingmagazine.com/wp-content/uploads/2015/05/01-wp-template-hierarchy-opt.jpg

@danielappelt
Copy link
Member Author

A Wordpress codex page explains the setup we are aiming for. We need a static front page which will be served via template front-page.php, and another empty static page having a useful URL (like "blog", "posts", ...) which will be served via home.php or index.php. In the latter case, "served" means that the regular posts loop will be run through the template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant