LinkedIn provide an online tool to generate a company profile widget for use on your website. While not commonly used, we've seen it convert well in professional circles. The code in this article will provide the necessary shortcode to embed the Widget into a WordPress post or page. There are three primary types of Widgets: an inline widget, icon with name, and icon. Our shortcode provides for all three. The code is almost identical to our article showing how to add a LinkedIn Personal Profile Widget into your WP website.
Note (November 2020): Parts of this code are broken. We'll update it when time permits.
The result of the primary profile widget is as follows. Shortcode used is
[linkedcompany style="1"]. The style="1" forces the container to be centered. No attributes are defined since they're included in the shortcode function.
To align the container within text, use
[linkedcompany style="1" align="right"] (or
The inline icon format is useful when referencing an organisation or company in text. For example, the shortcode of
[linkedcompany type="icon"] returns
. Hover over the icon and my personal profile container will be returned to the screen. The same inline inclusion can be used with the icon and name format. Shortcode of
[linkedcompany type="iconname"] returns:
. By default no styling is applied. You can force alignment and padding by simply adding
Feel free to follow our lonely little company page .
Copy and paste the WordPress function into your theme's
functions.php file or, if you sensibly have one installed, your custom functions plugin.
The following shortcode attributes are available.
iconas demonstrated above.
formatdetermines if a
clickis required to return the profile badge. By default we use hover. Use
style="1"to apply styles.