Site logo

Archived topic

Functions PHP File Question

3 replies · Started by Luke on April 27, 2021

Viewing posts 1–4 of 4

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?

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.

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');
}

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.

This archived topic is closed to new replies.