How do I add item in the main menu so it stays on every page

Jonatas Branco Posted in Beginning Developers 7 years ago

How do I add item in main menu?

Replies
Breton Jonatas Branco Replied 7 years ago

Thank you so much for your help! Hug!

Indonesian Arsalan Shah Replied 7 years ago

@Malik downloading any component wont fix the issues,

You should download https://github.com/opensource-socialnetwork/HelloWorld and put above code in bottom of file :

function my_new_menu_init(){
       ossn_register_sections_menu("newsfeed",  array( 
                      'text' => "My Text",
                      'href' => 'http://google.com',
       ));
}
ossn_register_callback('ossn', 'init', 'my_new_menu_init');
pk Malik Umer Farooq Replied 7 years ago

Yes if you not know you can download any component and change code own your requirement

Breton Jonatas Branco Replied 7 years ago

Do I need a new component?

Breton Jonatas Branco Replied 7 years ago

Thank you! But where do I put this code?

pk Malik Umer Farooq Replied 7 years ago

Just simple step

ossn_register_sections_menu('newsfeed', array( 'text' => ossn_print('com:ossn:meta)));