child theme: functions.php additions cause HTTP 500

Posted in: Newspaper
Post count: 15

I have a bunch of customizations that I need to add to the functions.php file, but every time I do it causes a HTTP error 500. I have used many other themes and never had an issue with adding code to the functions.php file.

One of the items I’m trying to add, is listed below:

if (!current_user_can(‘manage_options’)) {
remove_menu_page( ‘jetpack’ );
}
}

add_action(‘jetpack_admin_menu’, ‘hide_jetpack’);

What do I need to do in order to add functions and actions to the functions.php?

Post count: 15

bump

Post count: 20688

Hi,

That code seems to have an extra “}” from what I can see, maybe that is why it is causing problems. Valid code entered in the theme or child theme functions file should not cause any issues.

As a side note, if you bump or reply in your own topic after the initial post, this will delay our answer. We answer from oldest to newest, so doing this will renew the topic.

Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.