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

Pages don't display HTML or CSS fields #15

Open
andrewheiss opened this issue Feb 8, 2012 · 5 comments
Open

Pages don't display HTML or CSS fields #15

andrewheiss opened this issue Feb 8, 2012 · 5 comments

Comments

@andrewheiss
Copy link

Pages (such as a custom front page, like the welcome page at http://pea.rs) do not display the content of the custom HTML or CSS fields because they don't use loop-single.php as their template.

Is there a way to force a page to use the loop-single.php template so we can have fancy front pages like the example pea.rs site? How do they do it?

@scotcrop
Copy link
Contributor

scotcrop commented Feb 8, 2012

The code that handles showing the HTML and CSS on posts could be added to loop-page.php as well.

@andrewheiss
Copy link
Author

Is there a more WordPress-y way to handle that though, without duplicating the code on multiple templates? How's Dan doing it at http://pea.rs?

@scotcrop
Copy link
Contributor

scotcrop commented Feb 8, 2012

A lot of the template could be stripped. Pages will look for a few template file name variations and end up at page.php and then index.php, while posts do a similar search and end up at post.php and then index.php. See http://codex.wordpress.org/Template_Hierarchy

You could probably get by with just having an index.php that handled everything. I don't think the Twenty Ten template Dan's using has been modified beyond a few parts but I don't think his goal was to make a brand new template from scratch as much as it was to quickly put something together to get the result he was after.

I think in the case of http://pea.rs it is possibly a hacked page of sorts that shows the intro content and is hardwired to work that way.

@annarobertson
Copy link

Any progress on this issue? Any idea how http://pea.rs was done?

@clupprich
Copy link

Any (good) solutions on that one? Anyone knows of a fork which solves that solution?

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

No branches or pull requests

4 participants