1
I’m creating a options page for my theme in Wordpress, but I am with a certain difficulty related to checkbox.
The idea is as follows: If the checkbox infra_bloco1_visivel
is marked it will enable a div
page content. If unchecked, nothing appears.
In the options page the checkbox is like this:
$options[] = array(
'name' => __('Bloco 1', 'options_check'),
'desc' => __('Visível', 'options_check'),
'id' => 'infra_bloco1_visivel',
'std' => '1',
'type' => 'checkbox');
The logic will be something like "If 'infra_block' is visible checked, show such DIV (or anything else) if you are not checked show nothing.