Use this page to enhance your website with embedded code options for banners, containers, and widgets, as well as query string code that can be used to customize your event calendar page.
To place a banner, use the appropriate code below in an "Embed Code" element chosen from the build toolbar in the website editor. Be sure to replace the "[[secure domain]]" text in the code with the domain being used for the MC Trade pages:
Leaderboard Banner (970 x 90px) <div class="wli-ad-leaderboard"><script type='text/javascript' src="https://[[secure domain]].com/external/wcpages/v12/banners/banner-js.aspx?Bannername=leaderboard" referrerpolicy="no-referrer-when-downgrade"></script></div>
Medium Rectangle Banner (three options for banner names in order of preference) (300 x 250px) <div class="wli-ad-square1"><script type='text/javascript' src="https://[[secure domain]].com/external/wcpages/v12/banners/banner-js.aspx?Bannername=mediumrectangle" referrerpolicy="no-referrer-when-downgrade"></script></div>
<div class="wli-ad-square1"><script type='text/javascript' src="https://[[secure domain]].com/external/wcpages/v12/banners/banner-js.aspx?Bannername=square1" referrerpolicy="no-referrer-when-downgrade"></script></div>
<div class="wli-ad-square1"><script type='text/javascript' src="https://[[secure domain]].com/external/wcpages/v12/banners/banner-js.aspx?Bannername=square2" referrerpolicy="no-referrer-when-downgrade"></script></div>
Medium Rectangle Banner (replaces leaderboard for mobile view) (300 x 250px) <div class="wli-ad-mobile"><script type='text/javascript' src="https://[[secure domain]].com/external/wcpages/v12/banners/banner-js.aspx?Bannername=mediumrectangle_mobile" referrerpolicy="no-referrer-when-downgrade"></script></div>
To place a container, use the appropriate code below in an "Embed Code" element chosen from the build toolbar in the website editor:
Breadcrumbs - <div class="wli-breadcrumbs-container"></div>
To place a widget, use the appropriate code below in an "Embed Code" element chosen from the build toolbar in the website editor:
Events - <div class="wli-events-widget" data-wli-widget="event-block" data-wli-get="10" data-wli-scrolling="true" data-wli-show="3"></div> News - <div class="wli-news-widget" data-wli-widget="news-block" data-wli-article-type="articletype" data-wli-get="10" data-wli-scrolling="true" data-wli-show="3"></div> New Members - <div class="wli-new-members" data-wli-widget="members-block" data-wli-get="10" data-wli-scrolling="true" data-wli-show="3"></div> Deprecated Job Openings - <div class="wli-job-openings" data-wli-widget="jobs-plain" data-wli-get="6" data-wli-scrolling="true" data-wli-show="3"></div>
Widget options can be adjusted using the below code:
Add these codes to your calendar page URL to adjust what is displayed on the page (some options may only work on later versions of the events calendar page).
?oe=true – Only display events with the calendar type of Organization. ?ce=true - Only display events with the calendar type of Community. ?showeventtypes – This will load the calendar with only indicated event types checked in the event type filter. The rest are unchecked. This query string accepts a “+” separated list of event types (case sensitive). Example - http://domain.com/events?showeventtypes=Educational+Networking+Regional ?hideeventtypes - This will load the calendar with only indicated event types unchecked in the event type filter. The rest are checked. This query string accepts a “+” separated list of event types (case sensitive). Example - http://domain.com/events?hideeventtypes=Educational+Networking ?view - You can choose the calendar view you load into. Options are: month, basicWeek, basicDay, listMonth, listWeek, listDay. Example - http://domain.com/events?view=listWeek ?date - You can choose a specific day to load. If the calendar isn’t using a day view, it’ll load the appropriate block of dates that contain the day. Example - http://domain.com/events?date=11/15/2017 Combining – You can combine any of the above query parameters Example - http://domain.com/events?date=12/04/2017&view=listWeek