Forum breadcrumbs – You are here:Asgaros Support ForumSupportMenu
Please or Register to create posts and topics.

Menu

Page 1 of 2Next

Is there a way to add items to the forum menu?

 

If it needs to be done in the PHP files just need to know where, the rest I can figure out,

 

Steve

Eduardo has reacted to this post.
Eduardo

Hello @kryptodigger

With the following code you can add custom links to the header-menu:

function my_menu() {
  echo '<a href="https://example.com">Example</a>';
}
add_action('asgarosforum_custom_header_menu', 'my_menu');

Just adjust it to your needs and add it to your themes functions.php-file.

Eduardo and KryptoDigger have reacted to this post.
EduardoKryptoDigger
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thank you so much @Asgaros

Thus far, this is the easiest forum software I have used and you willingness to help at the dev level is amazing…

Steve

That is cool…..

How do I enable the @ tagging feature, just looked quickly. Cant find it.

Hello @kryptodigger

The mentioning-feature will be available with the upcoming v1.8 update which I plan to release in the next 10 days.

KryptoDigger has reacted to this post.
KryptoDigger
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Quote from Asgaros on February 16, 2018, 10:57 pm

Hello @kryptodigger

With the following code you can add custom links to the header-menu:

function my_menu() {
  echo '<a href="https://example.com">Example</a>';
}
add_action('asgarosforum_custom_header_menu', 'my_menu');

Just adjust it to your needs and add it to your themes functions.php-file.

 

 

@asgaros
How can i then add 2 links in menu, i use code snippets, and can only add one link, got this error when i try to add  seceond link in menu

Error:

The snippet has been deactivated due to an error on line 2:

Cannot redeclare function my_menu.

Hello @dkbjorn

Just output two links in the same function:

function my_menu() {
  echo '<a href="https://example.com">Example 1</a>';
  echo '<a href="https://example.com">Example 2</a>';
}
add_action('asgarosforum_custom_header_menu', 'my_menu');

 

Eduardo has reacted to this post.
Eduardo
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Super useful!

So to understand right, this code goes into functions.php-file, and not in the custom CSS, right?

Yes that’s true.

You can also use the “Toolbox for Asgaros Forum” plugin

Nur ein Biker weiß, warum ein Hund seinen Kopf aus einem Autofenster steckt.
Only a biker knows why a dog sticks its head out a car window.
Quote from Asgaros on April 13, 2020, 10:36 am

Hello @dkbjorn

Just output two links in the same function:

function my_menu() {
  echo '<a href="https://example.com">Example 1</a>';
  echo '<a href="https://example.com">Example 2</a>';
}
add_action('asgarosforum_custom_header_menu', 'my_menu');

 

is there any way to help me edit the position of the search bar in the menu bar

Page 1 of 2Next