Archived topic
Sections and bar display on the right
7 replies · Started by Alain on January 14, 2021
Hello,
To get a mobile view with good settings, I replace all pages of my site made with tables with sections.
The only problem is that despite setting the page on "Side Bar right", I get a full page view without the right bar.
Can you tell me how I have to proceed to get the bar display right when I go with sections?
Thank you for your help.
Kindly,
Alain
Here is the address of my site and the page displayed without a bar on the right despite the adjustment made.
Hi there,
to enable Sidebars when Sections are active requires a little PHP Snippet which this article provides:
https://docs.generatepress.com/article/allow-sidebars-sections/
Thank you for your response and your help.
I understood that you had to add a line of PHP code for displaying the bar but in which file and where in the file?
I do not have much knowledge in this area, thank you for giving me detailed explanations. Kindly,
Alain
This article explains adding PHP:
https://docs.generatepress.com/article/adding-php/
TLDR - choices are:
1. If you're using a Child Theme you add the snippet to child themes functions.php
2. If you are not using a Child Theme, then install the Code Snippets plugin, this will add Snippets to your Dashboard, Add a New Snippet, paste in the code, and Save it - don't worry about any of the other options.
Thank you so much for your help, I understood how it works and it works, I found my sidebar, it's great!
Well cordially,
Alain
You're welcome
Thank you very much!