0

我想隐藏 Redux Framework 中的“上传”字段。

我找到了一种方法,但它无法隐藏“上传”字段。我试过'image' => false,但它不起作用。

'show'  => array(
    'title' => true,
    'description' => true,
    'url' => false
),

在 Redux 框架中隐藏“上传”字段

有什么建议或意见吗?或者,我如何通过编辑核心文件来做到这一点?

谢谢。

4

1 回答 1

1

解决了 :)

如何?

添加类名。

array(
    'title'     =>  __('Add Service Item', 'polos'),
    'id'        =>  'service_items',
    'class'     =>  'serviceExClass', // See theme functions.php
    'type'      =>  'slides',
    'Placeholder'   =>  array (
        'url'       =>  'Service Icon Code',
        'title'     =>  'Service Title',
        'description'       =>  'Service Description',
    )
)

我已经定义了类名 serviceExClass。现在转到主题functions.php文件并在那里写 -

function my_custom_admin_head_ar() {
    echo '<style>
    .serviceExClass .redux-container-slides .redux_slides_add_remove {
        display: none !important;
    }
    </style>';
    }
add_action( 'admin_head', 'my_custom_admin_head_ar' );

现在,特定部分的“上传”字段将被隐藏。我的朋友帮了我很多,找出解决方案。

谢谢。

于 2016-05-05T08:19:53.597 回答