Your Time:
Our Time:
← Back to discussions

Ability to add items to 'sub-nav' menu

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

This topic has 3 replies, 2 voices, and was last updated 12 years, 7 months ago by Fem.

  • 2014-02-14 at 9:06 pm
    Support Expired
    #2937
    Chris
    Participant
    • Topics: 13
    • Replies: 23
    • Total posts: 36
    • Post count: 24

    In future updates are you able to allow an easy way to place items on the Sub-Navigation menu. I can currently do it by editing the ‘template_subpage.php’ file and I can see where I can place items. But if I then choose to update my theme, I will loose my changes.

    http://www.newgatehosting.co.uk

    Thanks

    2014-02-15 at 2:16 pm
    #2947
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    You can easily add items without editing the template. I don’t know how you are editing that page. Can you email me the the WP Logins to your site and make sure you set the reply as private post so that only admin can see the logins

    Regards
    Maqk

    2014-02-15 at 2:50 pm
    Support Expired
    #2949
    Chris
    Participant
    • Topics: 13
    • Replies: 23
    • Total posts: 36
    • Post count: 24

    Please have a look at http://www.newgatehosting.co.uk/support and you will see I have added a review button for Searchen.

    These are the additional bits I which to add. In the Host me V2 control panel, I see no option to add extra bits like social buttons etc.

    2014-02-17 at 2:14 pm
    #3010
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Edit template_subpage.php and add the following code after line#59 before ending the div element. Now you can assign any custom sidebar for the subnav page template as well.

    ID, 'custom_widget', true);
    	$widget = strtolower( preg_replace('/\s+/', '-',$widgets ) );
    	//loop through the widget pages
    }
    /**
     * If current page falls under widget pages
     * then display sidebar widgets accordingly
     * Otherwise display default widgets
     */
    
    if ( $widget ) {
    	if ( function_exists( 'dynamic_sidebar' ) && dynamic_sidebar( 'sidebar-'.$widget ) ) : endif;
    } else {
    	if ( !dynamic_sidebar( 'defaultsidebar' )) : 
    endif;
    }
    ?>
    
    • This reply was modified 12 years, 7 months ago by Fem.
    • This reply was modified 12 years, 7 months ago by Fem. Reason: Added Addition PHP Code

You must be logged in to reply to this topic.