Hey @ellaurenzovfoot,
Hope you’re well.
I didn’t understand the question clearly, it looks like you have a problem-related WordPress core sidebar features. But this forum is only for Custom Sidebars plugin, you should ask your question in a proper forum from https://ww.wp.xz.cn/support/
By the way, the problem seems like while creating your sidebars in codes, you wrongly use dynamic_sidebars and register_sidebar functions. So please check that codes and if the problem continues, ask using the proper forum.
Cheers,
Oguz
Hello Oguz,
thanx for the answer, but I use custom side bar plugin as you explain in your webpage. I created a sidebar specific for each of my page and in the page I choose the specific custom sidebar I created.
Hey @ellaurenzovfoot,
Hope you’re well.
Looks like I couldn’t understand the problem correctly. While saying this;
I made twenty seventeen to use as a one page site and put 5-6 section in front page. For each of them I put a different sidebar, but unfortunatelly it’s all that show up. I don’t understand why.
I was thinking you’re referring to custom coding on this part instead of using custom sidebars, am I wrong?
If you are not referring any custom coding, can you please explain more about your setup? So I can test the same thing on my test site to see the problem. Please share the webpage URL that you mention too.
Cheers,
Oguz
Hello Oguz,
I,m not so good in english, so that’s maybe the reason I can’t be clear.
alterhito.org is the page I’m speaking. I use twenty seventeen as a one page with 5 6 sections. I made a custom sidebar with your pluging. But onlye 3 page sections their custom sidebar. The section “free software” and “about” in the site don’t work to make the pluging appear. I don’t know why only for those two it is not working.
Hey @ellaurenzovfoot,
Hope you’re well.
Can you let me know, how did you create 5-6 sections? Because as a default Twenty Seventeen allows you to choose 4 section and not allow to sidebars. Please let me know how did you add sidebars too?
If there is any coding please share the codes or upload your files to somewhere like Google Drive or Dropbox to share.
Cheers,
Oguz
Hello Oguz,
to add section I paste this code in the function.php of the child theme:
/*
* A simple function to control the number of Twenty Seventeen Theme Front Page Sections
* Source: wpcolt.com
*/
function wpc_custom_front_sections( $num_sections )
{
return 5; //Change this number to change the number of the sections.
}
add_filter( 'twentyseventeen_front_page_sections', 'wpc_custom_front_sections' );
To add the side bar I did follow your tutorial, I have your child theme, I dl custom side bar plugin, I created the sidebar in widget section, one for each page, and then I’ve been in each page to chose the specific sidebar in the side section.
Wich is weird is that is working for some and not the others.
The plugin I have are:
Akismet
contact form 7
Custom sidebar
Easy fancy box
Jquery smooth scroll
Qtranslate X
Tinymce advanced
Wp-perfect plugin
Wp-statistic
Wp-sweep
Thanks for your time!
Hey @ellaurenzovfoot,
Hope you’re well.
To check is there any coding mistake I need to see your child theme customizations too. Can you share with me your child theme files too?
Cheers,
Oguz
I use the child theme here. IT come from this tutorial I add the function for the 5 section in function.php then I add this code in custom css in customizer
/* enleve page blog titre */
.blog h1.page-title {
display: none;
}
/* les titres de la page d'accueil dans les images */
.page .entry-title{
position: absolute;
top: -100px;
width: 100%;
font-size: 30px !important;
color: white !important;
}
/* change le fond du footer */
#colophon {
border: 1px solid;
padding: 10px;
box-shadow: 5px 10px #888888;
background: whitesmoke;
opacity: 0.7;
}
#colophon * {
color: black !important;
}
.page #content {
padding-top: 13px !important;
}
/* taille contact form */
div.wpcf7 {
width: 80%;
border: 1px solid;
padding: 10px;
box-shadow: 5px 10px #888888;
}
/*full width of the front page */
/*.wrap { */
/* margin-left: auto; */
/* margin-right: auto; */
/* max-width: 80%; */
/* padding-left: 2em; */
/* padding-right: 2em; */
/* } */
Hello @ellaurenzovfoot
Hope you’re doing well!
I’ve tested the theme on my end and it does load the sidebars on two more added sections (on all sections in general). There are few JS errors in the developer console on your end.
What widgets are added into the sidebars? Would you please try replacing these with default WordPress widgets to see if these are loading?
Would you please deactivate all the plugins besides the Custom Sidebars and see if the default widgets are loading?
Let us know how it went!
Cheers,
Nastia
Hello Nastia,
It’s only native wordpress widget: text, image and gallery.
But I think I found the gulty plugin: Qtranslate-X that I use to have my website bilingual. When I did desactivate all plugin besides Custom Sidebars, all the sidebars were gone. When I activated only Qutranslate-X they came back.
Testing it, I found that that 3 sidebars on 6 appears in French and none in English.
I’ve try to desactivate, clean with wp-sweep but it doesn’t come back. Even if I delete Q-TranslateX, desactivate Custom side bar clean with wp-sweep and reactivate customsidebar, it does not come back.
Hey @ellaurenzovfoot,
Hope you’re well.
Looks like that translation plugin didn’t get any update for 2 years, so it’s high chance to break something. I tried with unchanged twenty seventeen theme. And when I try to use with Custom Sidebars plugin normal blog sidebar becomes broken.
Also, I check some code tricks that claims uninstalls qTranslate X completely, but I am afraid no luck, it’s not fixed. So you need to ask advice from plugin support, if they are not responding you need to set up the site from scratch or you should hire a developer for an in-depth investigation to fix the site.
Cheers,
Oguz
Thx for your time Oguz and Nastia! I will try to figure it out.