Roma Theme - Hide posts on front page
This is for the JITP site.
I'd like to hide the article list on the front page on the blog, but would still like article lists to appear on other pages. I cannot seem to hide the posts on the front page, and I cannot specify that posts are only pulled from a particular (and empty) category. Please let me know what I should do to resolve this - thank you!!
#1 Updated by Boone Gorges over 3 years ago
I don't know if there's a way to do this within Roma's theme options. This is something you'd have to research in Roma's documentation.
It's possible to do it with a Roma child theme that contains a separate home.php template. That template would not contain the "article list", while other pages would still have it.
#3 Updated by Boone Gorges over 3 years ago
No, a child theme inherits all structure and styling from the parent theme, save for those that are manually overridden. http://themeshaper.com/2009/04/17/wordpress-child-theme-basics/
I'm not sure whether theme settings - those Roma-specific configurations you've been entering in wp-admin - will be automatically kick in if you switch to a child theme. It's possible. If not, it's also possible that I can migrate them manually.
The motivatation behind making it a child theme, btw, is that I don't want to modify Roma itself - this means that it'll be impossible to apply future theme updates without breaking your customizations.
#6 Updated by Boone Gorges over 3 years ago
- Status changed from New to Testing Required
Hi Laura -
I created a child theme of Roma and added it to the Commons in https://github.com/cuny-academic-commons/cac/commit/8b365c4c1e80ad463394bd1470c4e91c762d412b. In https://github.com/cuny-academic-commons/cac/commit/7017d26c9df698e7b3cbab502f0af3b3f1f17903 I made a modification that ensured that the Roma stylesheet was loaded correctly. (You may not be able to access those Github links - they are for my future reference.)
I activated the child theme on jitp. All the Roma options ported over automatically - the framework doesn't appear to be cognizant of child themes (for better or for worse). I did have to move over some WordPress-created theme settings, such as your menu positions.
The home page now does not include the list of recent articles at the end of the page. I assume this is what you meant when you said "hide the article list".
#7 Updated by Laura Kane over 3 years ago
This is great! Thank you so so so much for all of your help with this!! I really appreciate everything that you have done, especially since the turnaround time was so urgent. The site looks perfect, and it will definitely be ready to launch tomorrow.
Thank you thank you!!