Gravity Forms capabilities

Posted in: Newspaper
Post count: 4

Hi there,
I’m using Newspaper 7 Child theme and added ‘all Gravity Forms capabilities to Editor role’ code into the functions.php. Unfortunately it doesn’t seem to work. This code works fine when using it with other templates, so I assume there must be something with the way your child theme works.

Any idea how could I get this code to work? Gravity Forms’ support says to add it into the functions.php, but it doesn’t work in this case.

/**
* Add all Gravity Forms capabilities to Editor role.
* Runs when this theme is activated.
*
* @access public
* @return void
*/
function grant_gforms_editor_access() {

$role = get_role( ‘editor’ );
$role->add_cap( ‘gform_full_access’ );
}
// Tie into the ‘after_switch_theme’ hook
add_action( ‘after_switch_theme’, ‘grant_gforms_editor_access’ );

Many thanks,
Adam

Post count: 22421

Hello Adam,

If this modification does not work from the child theme, try to apply it to the main theme and see if the result is the desired one. We have not tested gravity forms so i cannot provide an official solution to making it work with our theme.
Test in the main theme and if it works from there.

Thank you!

Post count: 4

Hi Bogdan,
I’ve tested it and it didn’t work neither. Frustrating. It works with other templates, but not with your one. I’ve contacted Gravity Forms’ support, but you know your template better so probably either you can help me with that or I’m left in the darkness.

A.

Post count: 22421

Well gravity forms is not a tested plugin so i cannot provide any implementation method to something I have no idea how it works. Unfortunately plugin implementation falls beyond what the theme support can offer you We only recommend these plugins: http://screencast.com/t/VHeoAQfKxf
Thanks.

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