GavickPro / Meet-GavernWP

Meet GavernWP is a responsive free Wordpress theme
35 stars 23 forks source link

Option to disable support for Open Graph not work #270

Closed miley-w closed 10 years ago

miley-w commented 10 years ago

hi how are you? gavern wp is a great themes but i have some problem. i can not disable open graph box from post panel. option not work in theme. is there a code for function.php for hide this forever? thanks :*

piotrkunicki commented 10 years ago

Hi,

Thanks for the report, you're right this option doesn't hide Open Graph metabox from post. We'll improve that. For now you can edit gavern/helpers/helpers.features.php file and change this code:

add_action('add_meta_boxes', 'gavern_add_og_meta_box');

to

// check if the Open Graph is enabled
if(get_option($tpl->name . '_opengraph_use_opengraph') == 'Y') {
    add_action('add_meta_boxes', 'gavern_add_og_meta_box');
}
miley-w commented 10 years ago

thanks works goodd with this code :*