How to add Beamer as a menu item using our WordPress plugin?

Adding Beamer as a menu item using our WordPress plugin

Method 1 (quick and easy implementation – recommended)

If you want to add Beamer as a menu item instead of a floating button, follow these steps:

  1. Go to Appearance > Menus and select the Menu you want to edit in the top drop-down.
  2. Select Beamer from the list of menu item categories. Click on Beamer Trigger and then on Add to Menu.
  3. You can change the name of the menu item if you like.
  4. Don’t forget to save your changes before closing the page. And voilà.

Method 2 (selecting an existing item by CSS class)

This method is very similar to the first but lets you use an element already present in your Menu using a custom CSS Class:

  1. Go to Appearance > Menus and create a Menu Item as a Custom Link or choose one that already exists. Leave a # in place of the URL (that will avoid linking to anywhere else). 
  2. Open that menu item tab and search for the field CSS Classes. If you don’t see it you can activate it clicking on Screen Options in the top right corner of the page.
  3. Choose a class name and fill the CSS Classes field. Make sure is a unique name without any uncommon characters. Save your changes.
  4. Go to Settings > Beamer Settings and fill the selector field with your chosen class name with a dot at the beginning (e.g. for the class beamerLaunch, write .beamerLaunch). Save your changes and you’ll be ready to go.

Method 3 (select an existing element by id)

This method is very similar to the first two but instead of a CSS Class it uses the automatically generated menu item id (e.g. menu-item-1010):

  1. Go to Appearance > Menus and create a Menu Item. Leave a # in place of the URL(this will avoid linking to anywhere else). Save your changes.
  2. Go to the menu in your website (frontend) and over the new item you just created right-click and select Inspect (Google Chrome) or Inspect Element (Safari, Fire). You’ll see something like this.
    ...
    <ul id="primary-menu">
    	<li id="menu-item-1001">
    		<a href="https://www.getbeamer.com/">Leia</a>
    	</li>
    	<li id="menu-item-1208">
    		<a href="https://www.getbeamer.com/pricing">Luke</a>
    	</li>
    	<li id="menu-item-7110">
    		<a href="https://www.getbeamer.com/blog">Han</a>
    	</li>
    	<li id="menu-item-9810">
    		<a href="https://www.getbeamer.com/docs">Chewie</a>
    	</li>
    	<li id="menu-item-1201">
    		<a href="#">R2</a>
    	</li>						
    </ul>
    ...
  3. Search for the id value (something like this id="menu-item-2042") of the element you want to become your Beamer  button.
  4. Copy that value and paste it in the selector field in Beamer Settings at Settings > Beamer Settings.
  5. Enjoy.