Comments (4)
Don't use redux/options/{opt_name}/reset
For 'Reset All', use redux/validate/{opt_name}/defaults
For 'Reset Section', use redux/validate/{opt_name}/defaults_section
Those are the two I used with Social Profiles when needed to manipulate data via the reset buttons.
from redux-framework.
Hi Kevin, thanks a lot for you reply
I used this code on functions.php of my child theme, using the filter hooks you suggested:
function child_update_redux_option_manually() {
$opt_name = 'redux_mytheme';
Redux::set_option($opt_name, 'global-container', 'container-fluid');
}
add_filter('redux/validate/redux_mytheme/defaults', 'child_update_redux_option_manually');
When i click on "Reset All", the 'global-container' field keeps showing the value defined in the parent theme instead of the one defined by Redux::set_option
I'm doing something wrong?
from redux-framework.
I used the exact same hook in my theme's child theme, and it worked fine.
I couldn't speculate why it's not working in your case, as I do not have access to the parent theme, nor do I know how the original author used Redux. Such a thing does not fall under free support, debugging someone else's code. Sorry.
from redux-framework.
Kevin, is good to know the code should be working.
I'm on a Wordpress Multisite install, maybe that is affecting somehow. I will try it on a single install environment and will let you know. Thanks for you support, really really appreciate it.
from redux-framework.
Related Issues (20)
- How to update ROOM HEADER SLIDER images? HOT 2
- I cannot change some elements on my PREMIEX theme, as pictures or sliders HOT 2
- Error in contact form HOT 1
- File Permission Issues We were unable to modify required files. Please ensure that /home/fitmaple/moccotheme.com/www/wp-content//uploads/ has the proper read-write permissions, or modify your wp-config.php file to contain your FTP login credentials as outlined here.. HOT 2
- Push Metabox field dynamically HOT 2
- Multilingual social media profiles HOT 1
- Check for object before assigning
- cannot click on pages HOT 1
- Can't change the home screen logo and colours of the theme HOT 1
- Unable to add variable products from woocommerce to my cart
- v4.4.10 - Undefined Variable $return in class-redux-filesystem.php
- Thecappa Theme - Animations can't be turned off HOT 1
- 4.4.10 Redux Upgrade - Fatal error HOT 1
- How to set default values for typography field with Redux::set_option? HOT 1
- Warning count display Nan on left side for color menu HOT 1
- Attribute not working with text field HOT 4
- WordPress Backend is buggy HOT 6
- Backend is buggy- No Field ID is set HOT 8
- Project Icon Category Type Not Change HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-framework.