Your Time:
Our Time:
← Back to discussions

Default menus to left-hand side

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 11 replies, 3 voices, and was last updated 10 years, 3 months ago by Anonymous.

  • 2016-04-19 at 10:18 pm
    Support Expired
    #13883
    AmyLantz
    Participant
    • Topics: 1
    • Replies: 5
    • Total posts: 6
    • Post count: 7

    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.

    2016-04-20 at 12:22 pm
    #13902
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    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';

    2016-04-20 at 8:31 pm
    Support Expired
    #13919
    AmyLantz
    Participant
    • Topics: 1
    • Replies: 5
    • Total posts: 6
    • Post count: 7

    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?

    2016-04-21 at 2:16 am
    Support Expired
    #13921
    AmyLantz
    Participant
    • Topics: 1
    • Replies: 5
    • Total posts: 6
    • Post count: 7

    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
    				}
    			}
    
    • This reply was modified 10 years, 5 months ago by AmyLantz.
    2016-04-21 at 10:12 am
    #13934
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    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.

    2016-04-21 at 6:49 pm
    Support Expired
    #13940
    AmyLantz
    Participant
    • Topics: 1
    • Replies: 5
    • Total posts: 6
    • Post count: 7

    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.

    2016-04-22 at 11:49 am
    #13958
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    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.

    2016-04-22 at 5:56 pm
    Support Expired
    #13962
    AmyLantz
    Participant
    • Topics: 1
    • Replies: 5
    • Total posts: 6
    • Post count: 7

    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?

    2016-04-22 at 6:21 pm
    #13963
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    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.

    2016-04-22 at 6:26 pm
    Support Expired
    #13964
    AmyLantz
    Participant
    • Topics: 1
    • Replies: 5
    • Total posts: 6
    • Post count: 7

    Thanks.

    Will that change also include settings for the other pages (i.e. the summary page etc.) that the code changes you had me make fixed? Obviously I would like to get rid of custom code in the theme.

    2016-04-23 at 2:50 am
    #13968
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Yes it will be for all the pages and posts within the theme. You need not change anything in the parent theme and rather than using the parent you can use child theme to avail future updates as well.

    2016-06-06 at 4:21 pm
    #14720
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    We are setting this topic to be resolved but if you wish to update this topic please reply here instead of creating another topic.

You must be logged in to reply to this topic.