August 23, 2016 at 2:49 pm
Hello, Team Kadence!
I need a little help regarding removing some metaboxes on some of the templates. Here’s some info:
No URL (it’s an internal site only)
I’m using Virtue Premium 3.8.5
This particular instance, I am not using a child theme. I am testing changes via the premium theme first
On the Feature and Feature – Sidebar templates, I need to remove the Flex Slider, Carousel Slider, Image Carousel Slider, and Kadence Slide from the Feature Options section. In the past, I’ve simply commented this part out of the file (under virtue_premium > lib > metaboxes.php) and this has worked until recently. If I comment those lines out, they still show in the admin. I have cleared my cache and refreshed the page in the admin but they are still there. However, I can change the name and the description and that shows up fine. Odd, right?
Here is the code from the file:
array(
'name' => __('Feature Options - New (this shows)', 'virtue'),
'desc' => __('If image slider make sure images uploaded are at-least 1170px wide. This shows too!', 'virtue'),
'id' => $prefix . 'page_head',
'type' => 'select',
'options' => array(
//array( 'name' => __('Flex Slider', 'virtue'), 'value' => 'flex', ), //This should be gone but isn't.
array( 'name' => __('Carousel Slider', 'virtue'), 'value' => 'carouselslider', ),
array( 'name' => __('Image Carousel Slider', 'virtue'), 'value' => 'carousel', ),
array( 'name' => __('Revolution Slider', 'virtue'), 'value' => 'rev', ),
array( 'name' => __('Kadence Slider', 'virtue'), 'value' => 'ktslider', ),
array( 'name' => __('Shortcode Slider', 'virtue'), 'value' => 'cyclone', ),
array( 'name' => __('Video', 'virtue'), 'value' => 'video', ),
array( 'name' => __('Image', 'virtue'), 'value' => 'image', ),
),
),
Can someone help me with this? I’m not sure why commenting out the array isn’t working. I also did a search through the files for Virtue Premium but didn’t find another place that would override this code (maybe I missed it)?
Thank you!