Button

This shortcode creates a button using your site’s primary color. You can create small, medium, or large buttons, full width buttons, and bordered transparent buttons.

Basic Usage

[brew-btn url="http://www.example.com"] Link Text [/brew-btn]
Attributes Options Description
block true | false Set this to “true” to create a button that takes up the full width of its containing element. This is equivalent to the CSS attribute display: block. By default, this attribute is set to false.
size sm | md | lg Use this to create buttons of various sizes (small, medium, large). By default, buttons will be set to medium but will inherit the font size of its containing element. Setting the size attribute to medium will also enforce a font size.
target blank Set this to “blank” to open links in a new window.
transparent true | false Set this to “true” to create a bordered button with transparent background. By default, this is set to false.
url [url] Specify the page URL the button should link to.

Company Details Block

This shortcode creates a block of text containing your company details as set in the BREW > Company Details options page in WordPress admin. An h3 tag is used for the company name. By default, this shortcode will display all available company details preceded by appropriate Font Awesome icons. Phone numbers can be clicked to call on supported devices.

Basic Usage

[brew-company-block]
Attributes Options Description
address true | false Set this to “false” to hide the address.
email true | false | nolink Set this to “false” to hide the email address. Set this to “nolink” to disable the mailto: link.
fax true | false Set this to “false” to hide the fax number.
icons true | false Set this to “false” to hide the Font Awesome icons. Text labels will be used for phone and fax numbers.
name true | false Set this to “false” to hide the company name line 1.
name2 true | false Set this to “false” to hide the company name line 2.
mobile true | false Set this to “false” to hide the mobile number.
phone true | false Set this to “false” to hide the first phone number.
phone2 true | false Set this to “false” to hide the second phone number.

DMCA Notice

This shortcode displays a Digital Millennium Copyright Act notice to inform visitors who to contact in the event they wish to make a claim of copyright infringement for content on your website. You must register an agent with the U.S. Copyright Office and fill out the information on the BREW DMCA Notice form, located at BREW > DMCA Notice, before using this shortcode. For more information, read about the BREW DMCA Notice feature.

Basic Usage

[brew-dmca-notice]

Google Map

Use this shortcode to add a Google Map of your company’s location. By default, the map will be responsive, occupy the full width of its containing element, and be 450px in height. Requires a Google Maps API Key that must be entered on the BREW > Google Integration page. Learn More

Basic Usage

[brew-google-map]
Attributes Options Description
width [number] Specify a width to overrule the default full width.
height [number] Specify a height to overrule the default height of 450.

Highlighted Text Block

Use this shortcode to create a block of text with a border and background color. This shortcode has no attributes.

Basic Usage

[brew-highlight-block] Content [/brew-highlight-block]

The colors of the element are controlled via BREW theme’s “Widget Background Color” and “Widget Border Color” in the WordPress Customizer Colors section. If you wish to use different colors without changing the widget color settings, add your own CSS to the Additional CSS box in Customizer. The sample CSS below will give the Highlighted Text Block a yellow background and orange border.

.brew-highlight-block {
  background-color: #ffff00;
  border-color: #ff8000;
  color: #333333;
}

Mobile Phone Number

This shortcode outputs the mobile phone number from the BREW > Company Details page in WordPress admin.

Basic Usage

[brew-mobile]

Menu Slider

This shortcode creates a sliding bar of links based on a WordPress menu.

Basic Usage

[brew-menu-slider menu="ID" pagedots="false" autoplay="false"]

 

Attributes Options Description
autoplay true | false | [number] Set this to true to have the slider automatically scroll on page load, or set to a number in milliseconds to control the speed of the autoplay.
menu [number] Set this to the menu ID of the Menu you want to display as a slider.
pagedots true | false Set this to true to display navigation dots below the slider.

Phone Number 1

This shortcode outputs phone 1 from the BREW > Company Details page in WordPress admin.

Basic Usage

[brew-phone-1]

Phone Number 2

This shortcode outputs phone 2 from the BREW > Company Details page in WordPress admin.

Basic Usage

[brew-phone-2]

Reviews

This shortcode displays Reviews.

Basic Usage

[brew-reviews]
Attributes Options Description
heading h1 – h6 | p Choose the heading type to use for the Review summary. Default is h2.
posts [number] | featured Enter comma separated post IDs to display specific Reviews. Enter “featured” to display Featured Reviews.
random true | false Choose to display Reviews randomly.
thumbnails true | false Turn the thumbnail images on or off. Thumbnails are displayed by default.
qty [number] Enter the number of Reviews to display.

Examples

[brew-reviews] Shows all reviews.
[brew-reviews qty=”1″] Shows the single latest review.
[brew-reviews qty=”1″ random=”true”] Shows a single random review.
[brew-reviews posts=”27,54″] Shows the Reviews with ID numbers 27 and 54.

Showcase Table

This shortcode creates a table of links for a single Showcase and category.

Basic Usage

[brew-showcase-table post="ID" category="ID"]
Attributes Options Description
post [number] Set this to the post ID of the Showcase you want to display links for.
category [number] Set this to the category ID of the Showcase category you want to display links for.

Social Media Links

This shortcode outputs all social media links with icons from the BREW > Company Details page in WordPress admin.

Basic Usage

[brew-social-links]
Attributes Options Description
target blank Set this to “blank” to have the social links open in a new tab / window.