Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate – remove button from Menu Bar
Tagged: customize, edit, menu, remove menu
- This topic has 9 replies, 5 voices, and was last updated 7 years, 9 months ago by palmy69.
-
AuthorPosts
-
December 19, 2012 at 2:59 pm #8192LetabilityMember
The Affiliate Menu – when logged in – includes the an item on the menu labelled ‘Logout’.
However, I am using eStore and eMember so I do not want this item on the menu of the Affiliate side because eMember already provides that option.
Can you tell me what files I need to edit to remove this item (I also want to remove the ‘Contact’ item)? I do not necessarily want to remove the functionality behind the item – just the item itself.
It would be nice to make the remaining items fill the menu but it is not necessary.
Many thanks,
Peter.
December 19, 2012 at 10:28 pm #52535adminKeymasterPlease tell me which of the affiliate view area option you are using and I will be able to tell you which file to edit. Please refer to the following documentation if you don’t know what I mean by “affiliate view area option”:
December 20, 2012 at 8:45 am #52536LetabilityMemberHello,
I am using ‘affiliate view area option’ two.
Regards,
PEter.
December 20, 2012 at 9:41 pm #52537adminKeymasterOpen the “affiliate_platform_affiliate_view.php” file from this plugin and look for the following function:
function wp_aff_view_get_navbar()
Customize the output of this function how it want it.
December 21, 2012 at 8:46 am #52538LetabilityMemberGreat.
Thank you very much for your help.
Best regards,
Peter.
December 21, 2012 at 10:41 am #52539AndrewMemberI have a similar situation.
I want to rename ‘ADS’ to ‘ADVERTS’ in the standalone affiliate page. I tried editing affiliatesheader.php but it adds ‘AFF_NAV_’ to the menu item. I changed it back because I didn’t want to break the plugin.
So..
Where should I go to rename this menu item?
December 22, 2012 at 12:50 am #52540adminKeymasterYou can customize the text/message using the following technique:
March 7, 2017 at 4:58 pm #52541palmas69MemberHI, I tried to modify “function wp_aff_view_get_navbar()” with no success..
I would like to re-arrange affiliate menu, deleting some item (like “home”, “logout”) and moving item from a sub-menu to navbar..
How can I do?!
I prepared a little screenshot of what I mean:
[http://apcommunication.s3.amazonaws.com/varie/wp-affiliate-01.jpg]
Thanks in advance.
Alex
March 7, 2017 at 10:52 pm #52542adminKeymasterYou are using the affiliate view option 3 explained in the following page:
https://www.tipsandtricks-hq.com/wordpress-affiliate/setting-up-the-affiliate-viewarea-315
For that affiliate view, you need to update the following function:
function wp_aff_view_2_get_navbar()
This function is in the following file:
views/style2/affiliate_platform_affiliate_view2.php
March 8, 2017 at 1:55 pm #52543palmy69MemberIt works!
Thanks again
-
AuthorPosts
- You must be logged in to reply to this topic.