Hide fields on the frontpage

This topic contains 1 reply and 2 voices, and was last updated by Tareq Hasan 10 years, 8 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
August 9, 2013 at 6:19 pm 6777
Tareq Hasan Hi Mahi, We need to hide some fields in the products tab on our website. We've used this function to hide the gallery and worked perfectly: ]+./','', ob_get_contents()); ob_end_clean(); echo $postOutput; ?> But now we need to hide a full field, something like the plugin does to uncheck "Show attachments in the post". But instead it hide everything, only the field that we want (two or three specific fields that are created with Front End Pro). Best regards!!!
August 12, 2013 at 4:41 am 6865
Tareq Hasan Tareq Hasan

Using preg_replace, you are searching in the post content and replacing it. Instead of doing that, you could remove the gallery from your theme.

Anyway, the unchecking option in the plugin uses JavaScript to show/hide elements based on CSS class/ID. Not sure if it’ll work in your case.

Viewing 1 Posts - 1 through 1 (of 1 total)