how to display different menu according to postid?

I am searching for a way to display a different menu according to postID:

ex:

if ($post->ID == 2309) {
displayMenu(“menu2”);
}

I am using Avada and looked into header.php with no success.

Read more here:: how to display different menu according to postid?

Leave a Reply

Your email address will not be published. Required fields are marked *