Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #14608
    slabbi
    Member

    Hi,

    it would be nice if you could add “if ( ! function_exists( ‘xxx’ ) ) :”
    to all functions in catcheverest_functions.php, so the functions can be overwritten in client themes.

    It is very annoying when a hack has to be applied every time the theme is updated.

    slabbi

    #14616
    Sakin
    Keymaster

    @slabbi: There is if ( ! function_exists( '' ) ) : code in all the codes that we allowed to change in child theme. So, you can just build child theme and then create fine functions.php file and then add the functions in your child theme functions.php file which will not be overwritten when you update the theme.

    #14626
    slabbi
    Member

    *wondering*

    The free themes are released under GPL, so you allow to change the main theme basically.

    Adding “functions_exists()” does only mean to create child themes more convenient while leaving the main theme unchanged.

    So as far as I understand your statement: hacking the main theme is ok, creating a fork is also ok, but leaving it unchanged (and creating an independent child theme so hacks must not be applied again and again) is not wanted?

    #14628
    Sakin
    Keymaster

    @slabbi: Yes, you can change core theme files under GPL. But the problem rises when you update it. The update process will rewrite all your theme files to new files in the updated themes. That is why your changes in the theme will be overwritten by the theme. So, the best and safe option to modify theme is by building child theme, which will not get overwritten when you update the theme.

    #14629
    slabbi
    Member

    @Sakin: Yes, I like to move my changes to a child theme and actually most of my patches have already been moved but not all because some functions do not check if they already exist.

    I do not understand your comment “in all the codes that we allowed to change in child theme”. You already allow to change everything (because of the GPL) but you do not allow to change everything using a child theme which is the recommended way.

    #14630
    Sakin
    Keymaster

    @slabbi: That sentence mean we allowed to change all the function which doesn’t conflict with Theme Options panel. So, we have to keep in mind for that. But yes you are free to change that.

    So, actually what are the function you are having trouble with. If you could list that then I can check that for you.

    #14639
    slabbi
    Member

    Great, it would be very nice if you could check this. I’d like to modify “catcheverest_footer_content()”.

    In Germany you have to add an “Impressum” (a legal notice that comprises at least your name, address, contact information, and other legal information dependent on the site content and is also required for private, non commercial sites) by law that is reachable from the front page. Lots of sites use the footer to provide the required link and so do I.

    Other users might add an old fashioned counter or other additional information.

    #14641
    Sakin
    Keymaster

    @slabbi: Sorry but the footer content cannot be changed in free themes as this in the only one means though which we provide theme and support for free. I hope you understand this.

    If you want to edit any footer copyright information then you need to purchase Pro version where there is Footer Editor option and you can change the text as per your need.

    #14661
    slabbi
    Member

    Ok, I see.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Allow to overwrite all functions in catcheverest_functions.php in client themes’ is closed to new replies.