Comments (8)
And why the full width template is not full width... I thought it will remove the left sidebar.
I tried to unregister secondary nav and primary sidebar without success.
from unyson.
Hi @vguenichon,
Q: And why the full width template is not full width... I thought it will remove the left sidebar.
A: I suppose you mean this template: http://screencast.com/t/Fil4wnn91N. Unyson frontend is based on default wordpress theme Twenty Fourteen. Full width page template for this theme is working in this way. We made a mistake when started with Twenty Fourteen. We plan in future to create a custom template.
Q: I give it a try actually and I discovered there's no main widgets area... even in the testlab site.
A: Like you can see int his screenshot: http://screencast.com/t/nZPUHPGK7ry it is possible to create specific widget area for specific page, category. From my point of view a default widget area is not relevant it can be created when it is needed.
Q: But there's still a container (secondary) for a sidebar (primary) in the frontend.
A: In order to add/remove sidebars it is needed to make small changes for your theme: https://github.com/ThemeFuse/Unyson/blob/master/scratch-parent/framework-customizations/extensions/sidebars/config.php
Unyson Docs link: http://unyson-docs.themefuse.com/en/latest/extension/sidebars/index.html
from unyson.
I understand the different choices a company had to do. These were just questions, and with your answers I can imagine further how I should apprehend the development of my child theme.
Thanks for your very fast feedback !
from unyson.
One more thing : Is there a way for me to modify the config of the sidebars without editing the parent theme ? Should I copy the file with the same hierarchy ?
from unyson.
Is there a way for me to modify the config of the sidebars without editing the parent theme ? Should I copy the file with the same hierarchy ?
Create the file with the same hierarchy
child-theme/framework-customizations/extensions/sidebars/config.php
and overwrite any config key
$cfg = array();
$cfg['sidebar_positions'] = array(...);
from unyson.
It was the way I planned to do it ;-) This subject is closed !
from unyson.
Well, it's not closed at all.
Modifying the config of the sidebars extension in the framework does just change the possibilities on the creation of sidebars.
But for now, I want to unregister the primary sidebar, which exist in the frontend (there's the container) and the menu location (the whole left sidebar), without hiding it with CSS. I tried to achieve it with some common wordpress functions but it doesn't work at all.
function remove_some_widgets(){
unregister_sidebar('primary');
}
add_action( 'widgets_init', 'remove_some_widgets', 20 );
function wpse_remove_parent_theme_locations(){
unregister_nav_menu( 'secondary' );
}
add_action( 'after_setup_theme', 'wpse_remove_parent_theme_locations', 20 );
from unyson.
I get rid of that by creating new templates... that will do the trick in a more stable way, especially when the parent theme will be updated
from unyson.
Related Issues (20)
- Request failed. Error code: 403
- Menus Disappeared HOT 1
- Version 2.7.28
- Patch for v2.7.28 to fix missing capability checks HOT 54
- Access violation vulnerability HOT 4
- Something went wrong with the plugin API HOT 4
- Plugin contains an unpatched security vulnerability HOT 4
- Unable to Install Unyson demo content HOT 4
- Unyson is not working with php 8.0 HOT 1
- DEMO CONTENT IS NOT INSTALLING ON USING UNYSONS HOT 3
- Unable to install demo content plugin HOT 3
- Unyson Fork - slowing website
- obsolete front page displayed HOT 1
- Cant EDIT Wordpress pages
- Unyson removed from wordpress.org HOT 2
- Notice: Undefined variable: Solution
- Cant install demo content plugins faulty HOT 2
- The site structure is broken HOT 2
- Is Unyson a no longer a supported product? HOT 1
- SSL Access Violation
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 unyson.