WordPress.org

Forums

Pilot Fish
Child template - Pilot Fish (21 posts)

  1. Liz Pomegranite
    Member
    Posted 1 year ago #

    Hi there

    Please can you assist me with using a child theme for Pilot Fish - I don't really understand the instructions on the FAQ but have looked at other tutorials and I have created and activated a child theme.

    In the folder in my Filezilla, I included a text file with:
    /*
    Theme Name: Pilot Fish Child
    Theme URI: http://wordpress.danielatwork.com/pilotfish/
    Description:

    Author:
    Author URI:
    Template: pilot-fish
    Version: 0.1.0
    */

    @import url("../pilot-fish/style.css");

    I would like to edit aspects of the stylesheet and .php. Can I just copy them into the child theme in the editor and work in there?

  2. WPyogi
    Forum Moderator
    Posted 1 year ago #

    What's the site URL?

    You put only changes in the style.css file - to overrride the existing CSS. For .php files (except functions.php), yes, you can put a copy in the child theme - and modify it there. For functions.php, it's more complicated - but don't put a copy of that file in the child theme or it will likely crash the site.

  3. Liz Pomegranite
    Member
    Posted 1 year ago #

    Hello

    The URL is http://www.tonybarbour.co.za

    So for style sheet changes, (CSS) I just copy and paste changes into the editor when the child theme is open but for .php files I can copy all of them (except functions.php).

    Please confirm and then I can edit away :)
    Thank you for the swift response, you're a lifesaver.

  4. WPyogi
    Forum Moderator
    Posted 1 year ago #

    CSS changes go in the child theme style.css file via the editor.

    And yes, for .php files, except functions.php, put a copy in the child theme folder - then you can edit them via the Editor as well.

    But right now, doesn't look like you have a child theme activated on the site?

  5. Liz Pomegranite
    Member
    Posted 1 year ago #

    Thanks.

    I thought I did?

  6. Andrew
    Forum moderator
    Posted 1 year ago #

    What did you do?

  7. Liz Pomegranite
    Member
    Posted 1 year ago #

    I made a folder: pilot-fish-child with a file text file in it in the themes folder of wp-content on Filezilla.

    In the text file, I put:

    Theme Name: Pilot Fish Child
    Theme URL: http://wordpress.danielatwork.com/pilotfish/
    Description:
    Author:
    Author URI:
    Template: pilot-fish
    Version: 0.1.0

    @import url("../pilot-fish/style.css");

    It appeared in Appearance > Manage Themes and I activated it.

    I added the code mentioned earlier to remove meta data for comments but it doesn't look like it worked.

    I'd like to remove the comments section altogether - how do I do that without deleting it in the parent theme?

    Thanks for your help guys, I appreciate it.

  8. Andrew
    Forum moderator
    Posted 1 year ago #

    Do you have any caching plugins active? Your Child Theme is still not apparent on your website.

    For example, put this at the bottom of your Child Theme style.css file and see if anything happens:

    body { border: 10px solid red !important; }
  9. Liz Pomegranite
    Member
    Posted 1 year ago #

    Interesting... I did that but nothing has happened. So it's the child theme that's the problem. How do I rectify? Or could you possibly explain the instructions in the Pilot Fish FAQs in more detail?

  10. Liz Pomegranite
    Member
    Posted 1 year ago #

    No chaching plugins that I'm aware of

  11. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Did you do this per Dani's FAQ's:

    Please add a header.php to your child theme, you can just copy my original header.php file, and add

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" />

    inside the <head> tag of the header.php file. You can also download this style.css template for your child theme :)

  12. Liz Pomegranite
    Member
    Posted 1 year ago #

    Yes, I have.

    Plugins are: BackUpWordPress, Custom Favicon, WordPress SEO, WP Maintenance Mode. Would these have an effect?

    Thanks for your help guys :)

  13. Andrew
    Forum moderator
    Posted 1 year ago #

    Edited: Sorry I meant Child Theme header.php file:

    Could you copy all of the code of your header.php file and put it into a PasteBin page and link us that?

  14. Liz Pomegranite
    Member
    Posted 1 year ago #

    Sure thing.

  15. Liz Pomegranite
    Member
    Posted 1 year ago #

    http://pastebin.com/wsuE1Vvy

    Is that what you'd like?

  16. Andrew
    Forum moderator
    Posted 1 year ago #

    Sorry I edited my post, I meant to say the Child Theme header.php code.

  17. Liz Pomegranite
    Member
    Posted 1 year ago #

    Oh ok :)

    This is everything in my child theme. Is it supposed to import the .css and .php files itself?

    http://pastebin.com/8MWk4T3s

  18. esmi
    Forum Moderator
    Posted 1 year ago #

    The template files from the parent theme will be used automatically. You have to set up the CSS import yourself - which you appear to have already done..

  19. Liz Pomegranite
    Member
    Posted 1 year ago #

    OK but it's still not working - not sure what to do :(

    Say I want to remove something, like the comments section. How do I do that in the child theme?

  20. esmi
    Forum Moderator
    Posted 1 year ago #

    You would have to create a custom version of the appropriate template file in your child theme. The child theme's template would then take precedence.

  21. Liz Pomegranite
    Member
    Posted 1 year ago #

    OK thanks.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic