Hi !
I extended the Metabox Section of the Angular Portfolio on using the given filters:
add_filter ( 'avia_metabox_filter', 'my_avia_metabox_filter');
add_filter ( 'avia_metabox_element_filter', 'my_avia_metabox_element_filter');
function my_avia_metabox_filter($boxes)
{
$boxes[] = array(
'title' => "Buttons",
'id' => "buttons" ,
'page' => array('portfolio'),
'context' => "side",
'priority' => "low"
);
return ($boxes);
}
function my_avia_metabox_element_filter($elements)
{
$elements[] = array(
'slug' => "buttons",
'name' => "SOLD Button Color",
'desc' => "",
'id' => "sold_button",
'type' => "colorpicker",
'class' => "av_2columns av_col_2",
'std' => "#ffffff",
);
$elements[] = array(
'slug' => "buttons",
'name' => "UNDER OFFER Button Color",
'desc' => "",
'id' => "underoffer_button",
'type' => "colorpicker",
'class' => "av_2columns av_col_2",
'std' => "#ffffff",
);
return ($elements);
}
But at the Backend this doesn't looks nice. Looks like that the Elements are not assigned to the box. I have a screenshot if you neet.














