【发布时间】:2014-12-12 06:47:27
【问题描述】:
我正在为 Wordpress 主题使用 Redux Framework。 然后从 redux 选项面板上传 logo。
<img src="<?php global $redux_demo; echo '' . $redux_demo['opt-media']['url'];
?>" />
如果上传图片logo后如何隐藏wordpress标题和描述?
<span class="site-title">
<a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a>
</span>
<h4 class="site-desc"><?php bloginfo('description'); ?></h4>
Redux 字段:
array(
'id' => 'opt-media',
'type' => 'media',
'title' => __( 'Web Fonts', 'redux-framework-demo' ),
'compiler' => 'true',
'mode' => false,
// Can be set to false to allow any media type, or can also be set to any mime type.
'desc' => __( 'Basic media uploader with disabled URL input field.', 'redux-framework-demo' ),
'subtitle' => __( 'Upload any media using the WordPress native uploader', 'redux-framework-demo' ),
'hint' => array(
//'title' => '',
'content' => 'This is a <b>hint</b> tool-tip for the webFonts field.<br/><br/>Add any HTML based text you like here.',
)
),
【问题讨论】:
标签: php wordpress frameworks redux-framework