1. Home
  2. Installation
  3. WordPress Plugin Installation
  4. Register Login Links HTML Widget for WordPress Menus
  1. Home
  2. Plugin, Widgets and Website Settings
  3. Widget Reference
  4. Register Login Links HTML Widget for WordPress Menus

Register Login Links HTML Widget for WordPress Menus

This widget provides an alternative simpler version of the Buying Buddy Portal Menu widget that can be placed in a WordPress header when added as a menu item.
Many WordPress themes allow multiple "menus" and often there is a widget area in the header where a a menu can be placed. This method helps you use this capability to show the widget links.

The Portal Menu Widget has a filter option that also displays Register/Login text links - however with WordPress it's often not easy or possible to add a shortcode to a header.

The solution is to add function to the WordPress site menu.
We provide this HTML-only version of the Portal Menu widget as an alternative solution specifically for adding to WordPress menus.

Advanced Method
Please note that this is an advanced method that will add an element to the WordPress menu. You will almost certainly need to adjust styling with additional custom CSS.

Register Login Links HTML-Only Widget

  • Displays "Register/Login" text links that seamlessly integrate with your website header
  • Automatically updates link text based on user's current login status
  • Provides identical functionality to the Portal Menu widget with Register Login Links layout
  • Works in locations where WordPress shortcodes aren't supported

NOTE: Only available as an HTML widget. This widget cannot be used on a Wix site.

Examples

If the lead is NOT logged in, this displays as:

Register | Login

If the lead IS logged in then it displays as:

My Account | Logout

Use

To do this, you'll need to be able adjust the WordPress Menu.

  1. Edit your menu and add a Custom Link menu item with the following:
    • URL: #
    • Link Text: <span id="MBB_RegisterLinks"></span>
  2. Click "Add to menu".
  3. Then edit the menu item
    • Delete # from the URL field
    • (If CSS Classes field is available then type MBB_RegisterLinks to the CSS Classes field)

      It should now look like this:
  4. Save the Menu

Adjusting Style and Layout

This widget should inherit the menu link styling in your website.

You should add any custom CSS for adjusting Buying Buddy widgets to your custom Buying Buddy theme. See Adding Custom CSS.

Updated on June 27, 2025
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support
Buying Buddy Support