Adobe RoboHelp: Add LinkedIn Button
In this post I list the steps for adding a LinkedIn share button to both Multiscreen HTML5 and WebHelp outputs. This will allow your users to share links to your help to their LinkedIn news feed. The instructions for WebHelp will work on HTML5, FlashHelp and Browser Based AIR Help as well.
Get the LinkedIn button code
The first step in adding a LinkedIn button is to get the required code. Follow these steps to get the code:
- Make sure to leave the field URL to be shared empty. This will link the button to the visited help page.
- Choose the type of button that you want to use.
- Click Get Code.
- Copy the code that appears below the button.
Add Linkedin Button to Multiscreen HTML5 Layout
- Go to the layout in the Project Set-up pod.
- Open the page of the layout that you want to add the LinkedIn button to.
- Select the location where you want to add the LinkedIn button. (The most logical location is directly above your topic contents.)
- Switch to HTML view.
- Paste the code from the LinkedIn site into the layout. When you place it before the topic contents.
- In the first script tag, add the text http: to the src attribute, like this:
- Save the layout page.
- Repeat step 2 to 7 for every page in the layout you want to use the LinkedIn button.
- Generate your help.
When your content is on a server that is viewed with a secure connection (https), you may need to amend the src attribute to https:// instead of http://.
Add LinkedIn Button to WebHelp
- Go to the Master Page you use for your output.
- Select the header and switch to HTML mode.
- Paste the code from the LinkedIn site into the header.
- In the first script tag, add the text http: to the src attribute, like this:
- Save the Master Page and generate your help.
When your content is on a server that is viewed with a secure connection (https), you may need to amend the src attribute to https:// instead of http://.