A
A
AndrewTree2015-05-20 06:30:21
Frameworks
AndrewTree, 2015-05-20 06:30:21

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');

after that, the admin panel was displayed in the template
- added to 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'
                            )
                        )
                );

after that, in the admin panel, it became possible to upload a logo
- added to header.php
<a href="<?php bloginfo('home'); ?>">
<img src="<?php global $theme; echo $theme['logo-upload']['url']; ?>"/>
</a>

After these changes, the logo began to load in the video clip, but I don’t.
Maybe someone has already learned how to set it up and sees an error in my code or in the growth of my hands from "№;% ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WP Panda, 2015-05-20
@AndrewTree

https://github.com/reduxframework/redux-framework/...

$theme;   //  -
$redux_demo;  //+

A
AndrewTree, 2015-05-21
@AndrewTree

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 question

Ask a Question

731 491 924 answers to any question