New Landing How can we help? Themeforest Theme Support Joyn Joyn-Child files in folders not overiding Joyn Parent

Viewing 15 posts - 1 through 15 (of 20 total)
  • Posted in: Joyn
  • #134485
    mhote
    Member
    Post count: 394

    Hi, certain customisations are being lost during updates, even though the exact same file/folder structure has been loaded into the child theme. One example is sf-header.

    Any ideas or do swift-framework folder customisations not work in child themes? Thks!

    #134493
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Only root folder files can be overwritten in the child theme, for e.g. functions.php, header.php, footer.php etc. For framework and includes files you can only override them by adding the function to your child theme’s functions.php file

    – Kyle

    #266251
    hnycmb
    Member
    Post count: 60

    I’m also having an issue creating a child theme for Joyn.

    I have already put the customized single-team.php, sf-portfolio-detail.php, and single-post.php template files in the child theme folder.

    Now, could you give an example of the function/s that would be needed to override them in the parent theme?

    Thanks!! We’re really loving the theme!

    Tim

    #266259
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You need to keep the same directory structure inside the child theme.
    What exactly you need to change? If we can help with in our support scope.

    -Rui

    #266265
    hnycmb
    Member
    Post count: 60

    single-team.php – I have added two buttons (“back to home” and “view all”) to the bottom of team member content and moved the contact info up to the top of the content.

    sf-portfolio-detail.php – changed the share button to “email it” and added a “view all” button

    single-post.php – added a newsletter signup form, modified the share button to “Share this insight!” and added a custom footer.

    So if I mock the directory structure exactly and put just these customized php files there it will work? And what is the proper function?

    Thanks for you quick response!
    Tim

    #266378
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    It will work directly for the single-team.php and single-post.php because they are in the main directory and are automatically loaded.

    Regarding the other change inside sf-portfolio-detail.php it’s better to copy the entire function and paste it in the functions.php of the child theme

    You should also copy the function exists if.
    https://www.dropbox.com/s/0i9dogx1b3tjzlo/Screenshot%202016-05-10%2011.11.01.png?dl=0

    Let me know if you sorted it.

    -Rui

    #267499
    hnycmb
    Member
    Post count: 60

    I’ve tried a couple different setups and I keep getting errors when trying to load the wp-admin page…
    • Tried pasting all the functions we customized from the joyn theme files to the end of the functions.php file of the child theme.
    • Tried just pasting the functions from your previous post to the child theme functions.php and added single-team.php and single-post.php in a folder named “layout” that was also in a folder named “swift-framework” – so it had the same file path as original
    • also tried adding the customized single-team.php file to the root

    Can you help?

    All I need to do is override 3 joyn theme files: single-team.php, single-post.php, and sf_portfolio_detail.php

    How should I set this up?

    Here was one of the errors: Warning: Cannot modify header information – headers already sent by (output started at /nfs/c11/h03/mnt/204011/domains/infrared.hnycmbcreative.com/html/wp-content/themes/joyn-child/functions.php:463) in /nfs/c11/h03/mnt/204011/domains/infrared.hnycmbcreative.com/html/wp-includes/pluggable.php on line 1171

    There were different ones depending on how I arranged the files listed above.

    #268050
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    @hnycmb

    Can you provide me ftp access to have a look at that error?
    Use the private reply.

    Thanks

    -Rui

    #268124
    hnycmb
    Member
    Post count: 60
    This reply has been marked as private.
    #268298
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Couldn’t connect in the FTP or in the WordPress admin. Can you check it?

    It seems that you may have some empty lines at the end of this file
    wp-content/themes/joyn-child/functions.php:463

    Delete them and probably this header output error will go away.

    -Rui

    #268379
    hnycmb
    Member
    Post count: 60
    This reply has been marked as private.
    #268528
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Manage to login thanks, but just realised that the files aren’t attached to the reply.
    Can you share then inside a zip file, if necessary share it in a Dropbox link or something similar.

    -Rui

    #268561
    hnycmb
    Member
    Post count: 60
    This reply has been marked as private.
    #269316
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    @hnycmb

    Couldn’t check this on Friday, had some priority development tasks.
    Wil check it today.

    -Rui

    #269398
    hnycmb
    Member
    Post count: 60

    Thanks for the update! Looking forward to hearing how it goes.

Viewing 15 posts - 1 through 15 (of 20 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