New Landing How can we help? Cardinal Childtheme

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Cardinal
  • #147420
    hellobuck
    Member
    Post count: 10

    Hi guys,

    I’ve been playing around with Cardinal, mostly to figure out how things work. I’m building offline, using MAMP. Should I use the child theme or the ‘normal’ cardinal one? I now installed the normal one. Do I need to switch, and if so, how do I switch? I read something about updates, but I really don’t understand the difference. I want my site to benefit from updates versions of the theme, but I don’t want to rebuild my site after each update. I have seen that a few small css changes will be needed here and there, which I probably won’t be able to do (or redo) myself.

    Thanks for helping out!

    #147434
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please go to Admin -> Appearance -> Themes -> Here you can switch to child theme. You can make changes through style.css and functions.php file of child theme. You can override parent theme functions through child theme functions.php file. Hope that should help to you.
    Thanks
    Mohammad

    #147445
    hellobuck
    Member
    Post count: 10

    That was mighty quick! Thanks Mohammad. As I understand it, replacing these parent files with the child files, saves css customisations after the parent theme is updated. Is that correct?

    Can you please clarify the general relation between the parent theme and the child theme in simple terms?

    #147449
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Basically, a child them can be almost empty, it just requires a style.css file and an index.php file to work. In the style.css file there is a line in the meta:

    template: cardinal

    That tells WordPress that it’s a child theme of Cardinal. To make edits, all you need to do is add your custom css to the child theme style.css file. Please make sure you don’t add all of the parent theme css to the child theme as this is not needed

    – Kyle

    #147450
    hellobuck
    Member
    Post count: 10

    Excellent. I’ll give it a go. Thanks!

    #147451
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

    – Kyle

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register