Okay
  Public Ticket #1093258
Modifying php files in a child theme
Closed

Comments

  •  2
    WernerBuk started the conversation

    Hi,

    the only file that I see in the editor of the salient child theme is the style.css and functions.php

    I need to modify the header.php and footer.php but don't want those to be overridden whenever I update the theme.

    Is there a way to do that ? or do I just have to save all those modifications on the side and reapply them whenever a theme update overwrites the php files ?


    thanks

  •  9,001
    Tahir replied

    Hey Again,

    Simply use the Child Theme Provided in the Salient Theme Package in the Themeforest Download Section . 

    Copy paste the header and footer php templates in the Child Theme folder and then upload it . 

    Also have a look at this Article for more info : https://codex.wordpress.org/Child_Themes 


    Be.st 


    ThemeNectar Support Team 

  •  2
    WernerBuk replied

    Thank you that worked !

    One quick question though.

    If there is any update to the footer or header in a new version of Salient, I won't be able to use it right ?

    Should I monitor the update log to see if there is anything there ?


    thanks

  •  9,001
    Tahir replied

    Hey Again,

    There might be changes if we add new features . Though the best way would be to inject html using Javascript in the header or footer . That way you wont have to compare the header or footer with each new update. 

    Be.st 


    ThemeNectar Support Team