1"use strict";(self.webpackChunkforem_admin=self.webpackChunkforem_admin||[]).push([[3786],{3905:function(e,a,t){t.d(a,{Zo:function(){return s},kt:function(){return u}});var n=t(7294);function i(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function r(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?r(Object(t),!0).forEach((function(a){i(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}function c(e,a){if(null==e)return{};var t,n,i=function(e,a){if(null==e)return{};var t,n,i={},r=Object.keys(e);for(n=0;n<r.length;n++)t=r[n],a.indexOf(t)>=0||(i[t]=e[t]);return i}(e,a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)t=r[n],a.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var m=n.createContext({}),p=function(e){var a=n.useContext(m),t=a;return e&&(t="function"==typeof e?e(a):o(o({},a),e)),t},s=function(e){var a=p(e.components);return n.createElement(m.Provider,{value:a},e.children)},d={inlineCode:"code",wrapper:function(e){var a=e.children;return n.createElement(n.Fragment,{},a)}},l=n.forwardRef((function(e,a){var t=e.components,i=e.mdxType,r=e.originalType,m=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),l=p(t),u=i,g=l["".concat(m,".").concat(u)]||l[u]||d[u]||r;return t?n.createElement(g,o(o({ref:a},s),{},{components:t})):n.createElement(g,o({ref:a},s))}));function u(e,a){var t=arguments,i=a&&a.mdxType;if("string"==typeof e||i){var r=t.length,o=new Array(r);o[0]=l;var c={};for(var m in a)hasOwnProperty.call(a,m)&&(c[m]=a[m]);c.originalType=e,c.mdxType="string"==typeof e?e:i,o[1]=c;for(var p=2;p<r;p++)o[p]=t[p];return n.createElement.apply(null,o)}return n.createElement.apply(null,t)}l.displayName="MDXCreateElement"},8833:function(e,a,t){t.r(a),t.d(a,{default:function(){return s},frontMatter:function(){return o},metadata:function(){return c},toc:function(){return m}});var n=t(7462),i=t(3366),r=(t(7294),t(3905)),o={description:'How to go into "campaign mode" on the homepage.',position:2},c={unversionedId:"advanced-customization/config/campaigns",id:"advanced-customization/config/campaigns",isDocsHomePage:!1,title:"Campaigns",description:'How to go into "campaign mode" on the homepage.',source:"@site/docs/advanced-customization/config/campaigns.md",sourceDirName:"advanced-customization/config",slug:"/advanced-customization/config/campaigns",permalink:"/docs/advanced-customization/config/campaigns",editUrl:"https://github.com/forem/admin-docs/edit/main/docs/advanced-customization/config/campaigns.md",version:"current",frontMatter:{description:'How to go into "campaign mode" on the homepage.',position:2},sidebar:"tutorialSidebar",previous:{title:"Authentication",permalink:"/docs/advanced-customization/config/authentication"},next:{title:"Community Content",permalink:"/docs/advanced-customization/config/community-content"}},m=[{value:"Overview",id:"overview",children:[]},{value:"Campaign Hero HTML Variant Name",id:"campaign-hero-html-variant-name",children:[{value:"Campaign Articles Require Approval",id:"campaign-articles-require-approval",children:[]},{value:"<strong>Campaign Sidebar Enabled</strong>",id:"campaign-sidebar-enabled",children:[]},{value:"Campaign Sidebar Image",id:"campaign-sidebar-image",children:[]},{value:"Campaign URL",id:"campaign-url",children:[]},{value:"Campaign Featured Tags",id:"campaign-featured-tags",children:[]},{value:"Campaign Call to Action",id:"campaign-call-to-action",children:[]}]}],p={toc:m};function s(e){var a=e.components,o=(0,i.Z)(e,["components"]);return(0,r.kt)("wrapper",(0,n.Z)({},p,o,{components:a,mdxType:"MDXLayout"}),(0,r.kt)("div",{className:"admonition admonition-important alert alert--info"}
1,(0,r.kt)("div",{parentName:"div",className:"admonition-heading"},(0,r.kt)("h5",{parentName:"div"},(0,r.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,r.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,r.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))),"important")),(0,r.kt)("div",{parentName:"div",className:"admonition-content"},(0,r.kt)("p",{parentName:"div"},"We're in the middle of some fast-moving changes to the Forem Admin experience, so we've paused documentation updates for the time being. You may find that the docs are now outdated in parts. If you have any questions, please visit ",(0,r.kt)("a",{parentName:"p",href:"https://forem.dev"},"forem.dev")," to request additional support. We thank you for your patience and hope you're liking the changes!"))),(0,r.kt)("h2",{id:"overview"},"Overview"),(0,r.kt)("p",null,"Campaigns (accessed from ",(0,r.kt)("inlineCode",{parentName:"p"},"/admin/customization/config"),") are a way to highlight information to your audience. You can use campaigns in whatever way suits your needs; most often at ",(0,r.kt)("a",{parentName:"p",href:"https://dev.to/"},"DEV"),", we use them to highlight community celebrations or other call-to-actions."),(0,r.kt)("p",null,"Campaign features include:"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},"Large banner on homepage"),(0,r.kt)("li",{parentName:"ol"},"Highlighted articles under a certain tag on homepage righthand sidebar"),(0,r.kt)("li",{parentName:"ol"},"Righthand sidebar image for campaign")),(0,r.kt)("p",null,"You can choose to enable each feature individually or at the same time."),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"1) Large banner on home page",src:t(7575).Z})),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"2) Highlighted Campaign Articles & 3) Campaign Sidebar Image",src:t(8463).Z})),(0,r.kt)("h2",{id:"campaign-hero-html-variant-name"},"Campaign Hero HTML Variant Name"),(0,r.kt)("p",null,"An HTML Variant is the HTML and CSS design of your banner. Visit ",(0,r.kt)("a",{parentName:"p",href:"/docs/advanced-customization/html-variants"},"HTML Variants")," (",(0,r.kt)("inlineCode",{parentName:"p"},"/admin/customization/html_variants"),") to design your banner and add the name of the HTML variant to this field."),(0,r.kt)("h3",{id:"campaign-articles-require-approval"},"Campaign Articles Require Approval"),(0,r.kt)("p",null,"If using the sidebar, select this box if the articles under your selected tags should be approved before being shown here. Note: the articles will still appear on the main tag page, but they will be hidden from the homepage sidebar."),(0,r.kt)("h3",{id:"campaign-sidebar-enabled"},(0,r.kt)("strong",{parentName:"h3"},"Campaign Sidebar Enabled")),(0,r.kt)("p",null,"Check this box if you'd like to have the sidebar enabled."),(0,r.kt)("h3",{id:"campaign-sidebar-image"},"Campaign Sidebar Image"),(0,r.kt)("p",null,"Add an optional image URL if you'd like to include an image above your campaign sidebar."),(0,r.kt)("h3",{id:"campaign-url"},"Campaign URL"),(0,r.kt)("p",null,"This link directs users to more information about your campaign when they click on the campaign sidebar image."),(0,r.kt)("h3",{id:"campaign-featured-tags"},"Campaign Featured Tags"),(0,r.kt)("p",null,"Posts under these tags will be featured on the campaign sidebar."),(0,r.kt)("h3",{id:"campaign-call-to-action"},"Campaign Call to Action"),(0,r.kt)("p",null,'This text is set to "Share your project" in the above screenshot. It can be adjusted at your preference.'))}s.isMDXComponent=!0},8463:function(e,a,t){a.Z=t.p+"assets/images/campaign_sidebar_image-13afc5111287cae34d15cf74c10ecc91.png"},7575:function(e,a,t){a.Z=t.p+"assets/images/large_banner_on_homepage-e5bcd881a0c6e02ab141d14a187239c5.png"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.