Campaign URL Builder: Introducing the Shortcodes

Canada Webmaster

Shortcode settings moved to new tab Shortcode on top tabs menu.

sdffdf Canada Webmaster

By default, shortcodes disabled, also if you use bulletin API key shortcodes also will be disabled.

Please use your own API key for Bitly. How to find your Bitly API key, read here.

dsgdsfdfdfb Canada Webmaster

How to use shortcode

  1. Setup your Bitly API Key.
  2. Enable Shotcode toggle in plugin settings.
  3. (optional) Enable shortcode for Anonymous visitor.
  4. Place shortcode [Campaign-URL-Builder] on the target page.

Styling

By default shortcode styles have very basic styles, you can disable it and create your own styles.

Shortcode attributes

Attributes is optional and for your choice.

  • wrapper=”anyCssClass additionalClass”
  • wrapper-inline-style=”background: #ff0000; padding: 10px”
  • form=”anyCssClass additionalClass”
  • form-inline-style=”background: #ffff00; padding: 15px”
  • input-class=”anyCssClass additionalClass”
  • type=”preset”
  • campaign_page=”https://canadawebmaster.com/wp-plugin-campaign-url-builder/”
  • utm_source=”canadawebmaster_homepage”
  • utm_medium=”blogpost”
  • utm_campaign=”Introducing shortcodes”
  • utm_term=”serach key words”
  • utm_content=”some content”
  • custom_parameters=”key=value|key2=value|key3=value3″
  • hidden=”utm_source,utm_medium,utm_campaign”

This is stock example, you can replace it like you want.

Important to know.

If you use type=” preset” all fields which already have presented attributes will have a read-only attribute, and front end users can’t replace it.

The custom_parameters, you can pass only 3 couples. For example my_param=someValue. please separate couples by Vertical Bar.

The attribute hidden can contain the name of fields that you want to hide from the front end. For example hidden=”utm_source,utm_medium,utm_campaign” in this case 3 input fields will be hidden for users.

Very soon, I will prepare the visual shortcode generator.

Examples

Simple example

  1. Simple example
    [Campaign-URL-Builder]
  2. Advanced example
    [Campaign-URL-Builder wrapper=“MegaWrapperClass” wrapper-inline-style=“background:#ccc;padding:15px;” form=“MegaFormClass” form-inline-style=“padding:10px; background:#c19393” campaign_page=“https://canadawebmaster.com” utm_source=“” utm_medium=“” utm_campaign=“” utm_term=“” utm_content=“”
  3. PHP example
    <?php echo do_shortcode(‘[Campaign-URL-Builder]’); ?>
Search Engine Optimization | Google Keywords | SEO Toronto | SEO Mississauga | Online Marketing

Seen By

3214

Rating:
5/5

Share This Article

Share on facebook
Facebook
Share on twitter
Twitter
Share on whatsapp
WhatsApp
Share on linkedin
LinkedIn
Share on telegram
Telegram
Share on email
Email
Share on skype
Skype
Share on print
Print

Stay in Touch

Subscribe to our newsletter and get 10% off on each order.

Canada Web Master | Web Developments | Web Design | WordPress | Toronto Web Design | Mississauga Web Design | CRM

If you are searching for development, Then you have reached the right place!

10% Off ending on

Days
Hours
Minutes
Seconds

Contact Us

© All rights reserved | Canada Webmaster 2020

We would love to hear from you!

Please record your message.
Record, Listen then Send

Allow access to your microphone

Click "Allow" in the permission dialog. It usually appears under the address bar in the upper left side of the window. We respect your privacy.

Microphone access error

It seems your microphone is disabled in the browser settings. Please go to your browser settings and enable access to your microphone.

Speak now

00:00

Canvas not available.

Reset recording

Are you sure you want to start a new recording? Your current recording will be deleted.

Oops, something went wrong

Error occurred during uploading your audio. Please click the Retry button to try again.

Send your recording

Thank you