• Resolved bearsall22

    (@bearsall22)


    Hello,

    Trying to modify my child theme so that the static “home” page does not show the text, “No Results” “We were not able to find any posts. Please try again.”

    I decided to use different pages to post content and not use posts. Therefore there are no current posts. Is there code I can put into my child theme to delete out this “No Results” post?

    Any help would be greatly appreciated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hard to say without a link to the site and knowing the parent theme used, but it sounds like whatever template is called for your home page has a posts loop on it.

    Thread Starter bearsall22

    (@bearsall22)

    Hey thanks for the response! Well unfortunately my site is currently “under construction” so I want to fix these issues before turning off that plugin. But I am using the Capture theme. On the original theme I see the loop.php code in the Editor. However, after I created the child theme, there is no code in the editor to manipulate I think. So is there a line of code to add in order to get rid of the “No Results” post?

    Have you linked the Child Theme correctly (in the CSS)?

    If you have, you should only need to create home.php in your Child Theme folder and the rest should fall into place.

    Thread Starter bearsall22

    (@bearsall22)

    Thanks for the response Quin!

    Well I used the One-Click Child Themes for Slocum Themes plugin to create the Child Theme. Am I still able to link the Child Theme correctly in the CSS? Not really seeing an option to link in the Editor page.

    You’ll need to code in the link yourself in the child style.css. It’s only one line (which I cannot remember ATM).
    This can be done in the Editor.

    Thread Starter bearsall22

    (@bearsall22)

    Hey Quin, I think I found the code I need.

    @import url(“../capture/style.css”);

    Does that look right? If so, do I still need to create a home.php folder? I still don’t see all the templates to edit for the child theme

    I’d read this so you understand how child themes work:
    http://codex.wordpress.org/Child_Themes

    That looks right, yes.

    And all you need to do is have wp-themes/Parent and wp-theme/Child in the themes folder, with style.css @import url("../Parent/style.css"); in the Child folder.

    I say all, there is more to it, but the basics of, is…

    Thread Starter bearsall22

    (@bearsall22)

    Thanks guys!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Edit Child Theme – Static front page’ is closed to new replies.