- This topic has 3 replies, 2 voices, and was last updated 5 years ago by .
- The topic ‘How to conditionally remove the social menu in Authority Pro’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I need to conditionally remove / hide the Social Menu (along left hand side of page) for a specific page. The conditional argument is no problem, however I cannot find the hook for the social menu and the do_action argument for the social menu.
I have found some snippets on Brad Dalton's site which relate to the main and secondary nav menus but cannot find anything to remove the social menu conditionally.
As you are aware, Authority Pro has this third menu position.
I hope someone can help me here.
Thanks in advance.https://www.theadamwolfson.com
You can find the code for the social menu in the Authority Pro themes functions file between lines 276 - 293 and add a conditional check after the function name in the code so it doesn't load on a specific slug or id.
Thanks so much for pointing that out. I normally look in functions.php - silly me!
I have now sorted this out and again, thanks for your kind help.
© 2023 WPEngine, Inc.