Answer the question
In order to leave comments, you need to log in
How to enable logo upload in WordPress using Redux Framework?
Good morning.
I watched the training video https://www.youtube.com/watch?v=WbbgiOPG4AQ repeated what he does, but it still didn’t work out.
What I did:
- downloaded redux-framework.3.4.1 https://wordpress.org/plugins/redux-framework/deve... as in the video
- uploaded it to the template folder
- renamed the sample-config.php file in the sample folder in config.php
- in functions.php I wrote:
require_once('lib/ReduxCore/framework.php');
require_once('lib/sample/config.php');
$this->sections[] = array(
'title' => __( 'Header Options' ),
'icon' => 'el-icon-website',
'fields' => array(
array(
'title' => __('Logo Uploader'),
'subtitle' => __('Uploader your logo'),
'type' => 'media',
'id' => 'logo-upload',
'compiler' => 'true'
)
)
);
<a href="<?php bloginfo('home'); ?>">
<img src="<?php global $theme; echo $theme['logo-upload']['url']; ?>"/>
</a>
Answer the question
In order to leave comments, you need to log in
https://github.com/reduxframework/redux-framework/...
$theme; // -
$redux_demo; //+
For those who faced the same problem, the compiled code with the fix was posted here How to do a logo replacement using the Redux Framework?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question