Project

General

Profile

Actions

Bug #4480

closed

Roma Theme - Hide posts on front page

Added by Laura Kane over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress Themes
Target version:
Start date:
2015-08-24
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Hi Again,

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!!

Actions #1

Updated by Boone Gorges over 8 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.

Actions #2

Updated by Laura Kane over 8 years ago

Okay. And if we were to make a child theme, I would have to start all over again, right?

Actions #3

Updated by Boone Gorges over 8 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.

Actions #4

Updated by Laura Kane over 8 years ago

Okay, if it's easy for you and something that can be done today or tomorrow, let's do it. I have a deadline to finish tomorrow night, so I'm willing to try anything!

Actions #5

Updated by Boone Gorges over 8 years ago

Laura - I'm going to be messing with the site for the next few minutes while I switch you over to a child theme. If you could, please step away from the keyboard until further notice.

Actions #6

Updated by Boone Gorges over 8 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".

Actions #7

Updated by Laura Kane over 8 years ago

Hi Boone,

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!!

Actions #8

Updated by Boone Gorges over 8 years ago

  • Category name set to WordPress Themes
  • Status changed from Testing Required to Resolved
  • Assignee set to Boone Gorges
  • Target version set to 1.8.9

Excellent! Good luck with it, and let me know if you have more problems.

Actions

Also available in: Atom PDF