This topic has 11 replies, 3 voices, and was last updated 10 years, 3 months ago by Anonymous.
Viewing 12 posts - 1 through 12 (of 12 total)
We always want our menus to be on the left-hand side (see https://systemideveloper.com/blogs/) and this works fine on the home page but …
For individual blog posts we have to always go in and manually change the setting to move it to the left. We would like this to be the default.
Also on the author pages (see https://systemideveloper.com/blogs/author/jon-paris/) we cannot find an equivalent setting to allow the menu to appear on the left.
Overall this theme works well for us – hopefully you can help us resolve these issues.
Find the following path,
hostmev2/framework/common/atp_generator.php on line no around 99, replace this
$sidebaroption = get_post_meta($postid, "sidebar_options", TRUE) ? get_post_meta($postid, "sidebar_options", TRUE):'rightsidebar';
with,
$sidebaroption = get_post_meta($postid, "sidebar_options", TRUE) ? get_post_meta($postid, "sidebar_options", TRUE):'leftsidebar';
It looks as if it should work but sadly no-go.
Don’t know if it makes a difference but we are actually using HostmeV2 child. I looked in that folder to see if it replaced atp_generator.php but it doesn’t. I also know that I updated the right file because it crashed on my first edit – I copied form the email which had hex codes everywhere and the server didn’t like that!
The author post list pages showed no change. New posts showed no change.
Thought it might be the cache so I cleared it and started over – again no change.
Any other ideas?
Follow up.
Noticed two other points in atp_generator.php where the default was being set to rightsidebar (see below). Changing them resulted in the summary pages getting the menu in the correct (left) place but individual blog posts still default to right. Not sure which one caused the summaries to work correctly but …
switch($sidebaroption){
case 'rightsidebar':
$sidebaroption="rightsidebar";
break;
case 'leftsidebar':
$sidebaroption="leftsidebar";
break;
case 'fullwidth':
$sidebaroption="fullwidth";
break;
default:
$sidebaroption="leftsidebar"; // Was rightsidebar
}
if ( class_exists('woocommerce') ) {
if( is_product() ){
$sidebaroption = 'fullwidth';
}
} else {
if( is_archive() || is_search() ) {
$sidebaroption = 'leftsidebar'; // Was rightsidebar
}
}
I have seen that individual blog posts are showing correct only to the left side. Can you point me where exactly it is displaying to the right? Send me the url or screenshot.
They are showing that way because we have manually set to that … but they do not default to that. We have gone through the whole site doing it by hand.
This is one that I just created https://systemideveloper.com/blogs/test-menu/ as you can see the menu is in the wrong position.
I’m confused. Are you looking for menus or sidebar positioning?
If you are looking for sidebar positioning, then you can do it from the page meta options by going to that specific page > Layout Option > Right/Left/Fullwidth Sidebars. Look at the screenshot.
If this not the answer for your question, then send us the screenshot what exactly you are looking for. So that I can fix.
Sorry – I’m using the term”menu” for what you call “sidebar”.
I know I can manually set it – I said that from the very beginning. But I don’t want all my bloggers to have to remember to make that setting – I just want that as the default. Surely that is not too difficult?
We’ll consider adding an extra option from theme options where you can select the default sidebar set as right or left then your bloggers don’t have to reassign it to left. This new feature will be added in the next version which is going to be released by next week.
Viewing 12 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic.