Site logo

[Support request] Functions PHP File Question

Home Forums Support [Support request] Functions PHP File Question

Home Forums Support Functions PHP File Question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1752117
    Luke

    Hi

    Is it possible to access the functions.php file of the GP theme from WordPress Dashboard or do I have to use Filezilla for example?

    #1752394
    Elvin
    Staff
    Customer Support

    Hi there,

    It’s definitely possible but we don’t doing any changes to it because it’ll get wiped when the theme updates.

    But to answer the question, you can edit it through WP Admin Dashboard > Appearance > Theme Editor. On the right hand side, you should see a list of files. Click functions.php, it should let you do changes to the files.

    #1752513
    Luke

    That’s what I wanted to ask about. Today I updated the GP theme, because I saw a notification in my WP Dashboard. Now when I open the functions.php file I see that the changes I made to it haven’t disappeared, they are still there and you say that they will get wiped. But they are still there after I updated the Theme a few hours ago. I’m talking about this line of code which I pasted in that file:

    add_action( ‘init’, ‘stop_heartbeat’, 1 );
    function stop_heartbeat() {
    wp_deregister_script(‘heartbeat’);
    }

    #1752737
    David
    Staff
    Customer Support

    Hi there,

    those edits you made would have been to the Themes functions.php – the update that was just rolled out was for the GP Premium plugin – so your Theme files will have not been updated.

    But you should only edit a Child Themes functions.php – never the parent theme. A child themes files will remain intact when the parent theme is updated.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.