- This topic has 8 replies, 3 voices, and was last updated 2 years ago by
vako.
-
AuthorPosts
-
January 13, 2023 at 1:19 am #70428
Hi !
I have a simple question about the Bard Pro Theme. After creating a full website (more than 800 pages) with the Bard Theme I decided to switch to the Bard PRO theme. Even if I set the theme up as I wanted to there is an option that gives me some troubles.
Indeed, the right side bar disappeared from all my pages even if the Page Layouts option are OK. I discovered then that the PRO version of the theme add some new options in each page and I’ve found the one that works for me :
Show Sidebar
None Left Right BothThe problem I have is that I don’t have the time to change that option manually in my 800 pages !
Do you have a clue or a hint that can help me to change that setting for all my pages at once ? I want to apply the same setting (Show right sidebar) for all my pages.
Thanks for your help !
January 13, 2023 at 3:49 pm #70433Hi Lola,
At first, thank you for choosing our theme and service.
In order to assist we need to check your website from the back end, please install this 3rd party plugin “Temporary Login Without Password Plugin” which allows us to access your dashboard without sharing access details.
To better understand how the plugin works, please watch the video guide below: https://www.youtube.com/watch?v=EMu0e78OpJo
Please make sure to mark your reply as private to hide it from the public.
Kind Regards
January 14, 2023 at 12:07 am #70435Hello ! I can’t give you access to my website. I’m currently working on it offline via WAMP and wait for it to be finished to upload it.
Is there any other way to process ?
Thanks for your answer.
January 14, 2023 at 5:46 pm #70437Hi Lola,
We requested the login URL to check for the option in the Customizer section, In the Pro themes sidebars can be enabled in several ways, the first is to select page layout with sidebar, for this please navigate to Dashboard > Appearance > Customize > General Layouts > Page Layouts and chose your prefered style which includes sidebars, here is the screenshot: https://nimb.ws/Pk14rf
The pages which are not listed in this customizer section can also use sidebars via page options, please navigate to Dashboard > Pages > Edit page > Page Options > Show Sidebar
Please make sure that widgets in the sidebar areas are added from the back end, please navigate to Dashboard > Appearance > Widgets and check sidebar areas are filled with widgets you want to be displayed.
Kind Regards
January 14, 2023 at 9:48 pm #70439Hi !
I’ve checked the “Page Layouts” is OK. My Widgets settings are good too.
What I’d like to do is to change the Page settings “Show Sidebar” for all my pages at once. I don’t find a global setting. As I have more than 800 pages on my site it would be a real hell to change that setting page by page.
January 17, 2023 at 12:20 pm #70452Hi Lola,
I will redirect this topic to the developer’s board and they will contact you.
Kind Regards
January 17, 2023 at 4:00 pm #70453Hi,
Important: before adding the code, please make a backup. You can use this plugin – https://wordpress.org/plugins/updraftplus/ or make sure to test it on a development or staging environment before running it on a live website.
To set Right Sidebar for all pages you will need to insert the following code at the end the functions.php file. Then you need to visit your website home page and refresh it once (this will update all pages with the custom value). After that you can remove the code from functions.php file.
$args = array( 'post_type' => 'page', 'post_status' => 'publish', 'posts_per_page' => -1 ); $all_pages = new WP_Query( $args ); if ( $all_pages->have_posts() ) { while ( $all_pages->have_posts() ) { $all_pages->the_post(); update_post_meta(get_the_ID(), 'show_page_sidebar', 'rsidebar'); } wp_reset_postdata(); }
Kind Regards
April 20, 2023 at 6:13 pm #71031Thanks a lot Nick ! It took me a chile before testing it, but it works perfectly fine 🙂
Thanks again 🙂
April 21, 2023 at 5:45 pm #71035You’re welcome! We are glad to hear that it worked out for you. If you have any more questions or issues in the future, feel free to reach out to me.
Have a great day!
-
AuthorPosts
- You must be logged in to reply to this topic.