php files in responsive child

Home Support Forums Themes php files in responsive child

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Spence 10 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3309

    David Harvey
    Member

    Hey Spence, are the files that show up under appearence- editor like header.php copies of responsive’s, or should I use labzip header or footer to edit. Also does the child stylesheet need to call on the parents like this.. @import url(“../responsive/style.css”); or do I just customize in labzip-custom.css

    Hope this isn’t confusing

    Dave

     

    #3310

    Spence
    Member

    Hi David,
    when you are using one of our child-themes, the files you want to edit are in the child theme directory folder. You also have specific style sheets there to help you override any of the parent, or even the “core” child themes.

    When we create a child theme, like Responsive LabZip, we add the contents of the parent’s header.php and footer.php to new versions in the child-theme. This enables us to add some extra code and functionality.

    If you need to modify header.php or footer.php, do so to our child theme. If you want, you can also add any other parent theme files to the child theme directory and these will override the parent.

    The “ultimate” style sheet is called labzip-custom.css and this will trump all others before it. The order of stylesheets can be found in the output source of any page, but it is:

    style.css – parent
    style.css – child
    labstyle.css – child core style
    labzip-child.css – specific child theme style
    labzip-custom.css – blank and ready for your own custom style.

    If you ever need to update our child theme, you can simply copy over any mods you made, or just the labzip-custom.css if you only added css there.
    With functions.php, it doesn’t work the same. In this case, functions.php of the child is called FIRST, before the parent, so that you can ADD extra functionality as well as overriding it. This can be quite useful, compared with template pages, which only override parent when added to child theme.

    Let me know if that makes sense?

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘php files in responsive child’ is closed to new replies.