Explained: Shortcodes

Your Carrot site uses shortcodes to make localizing and personalizing your site quick and easy. They pull info like your company name or market city directly from your site settings into your website’s content. These shortcodes will be wrapped in brackets like this: [example]

This means you can add information and make updates in one location, rather than going to every page and corner of your site to make changes. You only need to update the main setting.

For example, you’ll notice your sites had information included upon launch, such as the company name and phone number. These were added using shortcodes [company] and [phone] . We have a few shortcodes that you can use within your site to insert information from your site’s company settings and content.

Important: Remember to keep shortcodes in the template content!

The benefits of shortcodes allows for quick and easy overrides within the Override Market Settings within the Visual Editor (as well as allowing our Auto-Location pages feature to function properly!).

Deleting shortcodes means you are opting for a manual process that will add more time to editing your site long term if you ever plan to expand outside of your primary market.

Here is a complete list of the shortcodes you will find or may use on your Carrot site to display information or format it in a way you’d like.

Company Information:

The company shortcodes can be copied below and pasted onto your site’s page where you want that content. Though you will see the bracketed information, your visitors will see the details you have on your site’s settings.

[address] – This is your company’s street address
[city] – This is the city the business is located in
[state] – This is the state your business is located in
[company] – This is your company name
[market_city] – This is the city that you do business in
[market_state] -This is the state that you do business in
[market_zipcode] – This is the zip code you to target (optional)
[phone] – This is your phone number

Content:

[map] – This is used to insert a Google map for your company address
[map address="INSERT ADDRESS BETWEEN QUOTES"] – Adds a Google map with a predefined address


Special Note: The shortcodes listed below may be seen on sites built circa October 2019 in the pre-Visual Editor classic containers. They were used to format items on the site without having to build out the code. We have those available within the editor of your site. These are for reference. They may still be used… However, you’ll find the editor options to be much easier and fluid for use.

Testimonials:

The testimonial shortcodes can be copied below and pasted onto your site’s page where you want that content. Though you will see the bracketed information, your visitors will see the testimonials you have added under your site’s content > testimonials section.

[testimonials] – Use this to add your 3 recent testimonials as a block on the site
[testimonials random] – Use this to add a single, random testimonial to a page
[testimonials id=1205] – Use this to add a specific testimonial to a page

Properties:

The property shortcodes can be copied below and pasted onto your site’s page where you want that content. Though you will see the bracketed information, your visitors will see the properties you have added under your site’s content > properties section.

[properties] – Use this to add your 3 recent properties as a block on the site
[properties count=6] – Use this to add a specific number of properties to a page (best to use multiples of 3)
[properties id=689] – Use this to add a specific property to a page

Content:

[button] – This is used to add a button to your site
[gravityform id="5"] – This is used to insert a form by its ID number. You can also use the “embed form” button in the editor.

Formatting:

The columns shortcode is a fantastic tool to be used if you are looking to use columns. The below columns are used by grabbing chunks of two side by side bracketed items, then inserting the details you want in a column between the two bracketed items.

[twocol_one] [/twocol_one] [twocol_one_last] [/twocol_one_last] – This is a code for two side-by-side columns.
[threecol_one] [/threecol_one] [threecol_one] [/threecol_one] [threecol_one_last] [/threecol_one_last] – This is a code for three side-by-side columns.