Have you reviewed Child_Themes?
Thread Starter
preso
(@preso)
Yes, I’ve reviewed “Child Themes”. At this point, I’m going to ditch Coraline (since there’s so much I had to remove), and move over to Simplest.
I would like to change the home page so that it only displays the post titles (not the content). Do you know how I could do that in the child theme? I have a decent grasp of CSS, but not of PHP.
Thanks for your help.
Yes – you can do that. The child theme will need it’s own style.css file but can then impiort the stylesheet(s) of the parent theme. If your home page is a posts page, you’ll also need a copy of the parent’s index.php template file in the child theme so you can customise it.
Thread Starter
preso
(@preso)
Do you know what markup I’d have to add after importing the parent’s index page? I’m looking for the specific PHP coding. I know I should learn PHP before tampering with it, but I’m in a hurry to get this up.
Thanks.
I’d suggest removing <?php the_content();?> if you want to get rid of the main post content.
Thread Starter
preso
(@preso)
If I do that the content doesn’t appear anywhere. I would like my post to appear when a user selects the title (on the single page). I just don’t want the content on the landing page.
Yes – so remove <?php the_content();?> from your child theme’s index.php file. Your parent does have a single.php file, yes?
Thread Starter
preso
(@preso)
Since I’m using the Simplest theme it only has a stylesheet, main index, theme functions, and comments page. I figure that I will have to add specifications to the main index page under the content div, but I’m not sure how to specify that I only want the content to be displayed on single pages, not the main page. Any help is greatly appreciated.
Here is a pastebin link that shows the entire contents of the main index php file : http://pastebin.com/YAtWCSpB
If I am reading right you just want a list of titles on the home page?
Line 25 change:
<?php the_content(); ?>
try
<?php if(!is_front_page()) the_content(); ?>
or
<?php if(!is_front_page() || !is_home()) the_content(); ?>
HTH
David
Thread Starter
preso
(@preso)
Great! Worked like a charm. Thank you.
Great, can you mark this topic resolved please!