<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom image slider in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218189#M9869</link>
    <description>&lt;P&gt;Hi Matt,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find pre-built sliders online so that you don't have to code them from scratch. A popular option is &lt;A href="http://kenwheeler.github.io/slick/" target="_self"&gt;Slick Slider&lt;/A&gt; but I like to use &lt;A href="https://flickity.metafizzy.co/" target="_self"&gt;Flickity&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I usually do is add the &lt;A href="https://unpkg.com/flickity@2/dist/flickity.css" target="_self"&gt;Flickity CSS&lt;/A&gt; and &lt;A href="https://unpkg.com/flickity@2/dist/flickity.pkgd.js" target="_self"&gt;Flickity JavaScript&lt;/A&gt; files to HubSpot (create a new CSS and new JS file and add the code respectively) and then link to each of those files in a custom module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in the HTML + HubL section of your custom module you can add something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="main-carousel"&amp;gt;
  &amp;lt;div class="carousel-cell"&amp;gt;...&amp;lt;/div&amp;gt;
  &amp;lt;div class="carousel-cell"&amp;gt;...&amp;lt;/div&amp;gt;
  &amp;lt;div class="carousel-cell"&amp;gt;...&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;And in the JavaScript section of your custom module add something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$('.main-carousel').flickity({
  // options
});&lt;/PRE&gt;&lt;P&gt;The above will let you hard code your slider but if you want to let users add new slides at the page level, you can create fields on the right-hand side of the module, group them and set that group to a "Repeater" to give users the option to add multiple slides, which will look something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="main-carousel"&amp;gt;

  {% for item in module.mygroup %}

    &amp;lt;div class="carousel-cell"&amp;gt;
      {{ item.rich_text }}
    &amp;lt;/div&amp;gt;

  {% endfor %}

&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://flickity.metafizzy.co/" target="_self"&gt;Flickity website&lt;/A&gt; has lots of customisations that you can add to the jQuery options above or CSS you can use to style the slider.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/1951013/Logos/stephanieogaygarcialogo_black.png" border="0" alt="Stephanie O'Gay Garcia" width="300" /&gt;&lt;/A&gt;HubSpot Design / Development&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#32C43F"&gt;&lt;I&gt;If this helped, please mark it as the solution to your question, thanks!&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Nov 2018 17:28:20 GMT</pubDate>
    <dc:creator>Stephanie-OG</dc:creator>
    <dc:date>2018-11-23T17:28:20Z</dc:date>
    <item>
      <title>Custom image slider</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218183#M9868</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a custom module image slider, so i have control over the design. However i only have experience with html and CSS, and i know very little regarding Javascript.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a image slider template which i can use and then add my own css to it. I have tried looking on the hubspot marketplace, but couldn't find a decent image slider. I have also tried cloning the image slider custom module, however i cant seem to add this to my webpages (wondering if this isn't supported anymore??)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best option for me? Thank you for any help regarding this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:23:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218183#M9868</guid>
      <dc:creator>Matt1986</dc:creator>
      <dc:date>2018-11-23T15:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom image slider</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218189#M9869</link>
      <description>&lt;P&gt;Hi Matt,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find pre-built sliders online so that you don't have to code them from scratch. A popular option is &lt;A href="http://kenwheeler.github.io/slick/" target="_self"&gt;Slick Slider&lt;/A&gt; but I like to use &lt;A href="https://flickity.metafizzy.co/" target="_self"&gt;Flickity&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I usually do is add the &lt;A href="https://unpkg.com/flickity@2/dist/flickity.css" target="_self"&gt;Flickity CSS&lt;/A&gt; and &lt;A href="https://unpkg.com/flickity@2/dist/flickity.pkgd.js" target="_self"&gt;Flickity JavaScript&lt;/A&gt; files to HubSpot (create a new CSS and new JS file and add the code respectively) and then link to each of those files in a custom module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in the HTML + HubL section of your custom module you can add something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="main-carousel"&amp;gt;
  &amp;lt;div class="carousel-cell"&amp;gt;...&amp;lt;/div&amp;gt;
  &amp;lt;div class="carousel-cell"&amp;gt;...&amp;lt;/div&amp;gt;
  &amp;lt;div class="carousel-cell"&amp;gt;...&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;And in the JavaScript section of your custom module add something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$('.main-carousel').flickity({
  // options
});&lt;/PRE&gt;&lt;P&gt;The above will let you hard code your slider but if you want to let users add new slides at the page level, you can create fields on the right-hand side of the module, group them and set that group to a "Repeater" to give users the option to add multiple slides, which will look something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="main-carousel"&amp;gt;

  {% for item in module.mygroup %}

    &amp;lt;div class="carousel-cell"&amp;gt;
      {{ item.rich_text }}
    &amp;lt;/div&amp;gt;

  {% endfor %}

&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://flickity.metafizzy.co/" target="_self"&gt;Flickity website&lt;/A&gt; has lots of customisations that you can add to the jQuery options above or CSS you can use to style the slider.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/1951013/Logos/stephanieogaygarcialogo_black.png" border="0" alt="Stephanie O'Gay Garcia" width="300" /&gt;&lt;/A&gt;HubSpot Design / Development&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#32C43F"&gt;&lt;I&gt;If this helped, please mark it as the solution to your question, thanks!&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 17:28:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218189#M9869</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2018-11-23T17:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom image slider</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218212#M9878</link>
      <description>&lt;P&gt;Hi Stephanie&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have followed your steps, however i cant seem to link the coded files to the custom module correctly. i have tried downloading to file manager and also copy and pasted the coded directly into new coded files in design manager. however both havn't worked. Please see screenshot below for what i have done so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/13272i22BF505C6CCBE1A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something i have forgotten to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Sat, 24 Nov 2018 11:46:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218212#M9878</guid>
      <dc:creator>Matt1986</dc:creator>
      <dc:date>2018-11-24T11:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom image slider</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218220#M9879</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ignore my message above, i have just reliased what i have done wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply it was very helpful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;much appreciated&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Sat, 24 Nov 2018 23:51:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218220#M9879</guid>
      <dc:creator>Matt1986</dc:creator>
      <dc:date>2018-11-24T23:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom image slider</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218287#M9884</link>
      <description>&lt;P&gt;Hi Matt,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think you need any of the jQuery function or document.ready wrappers.&amp;nbsp;Also, you can remove the "..." from the HTML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aside from that, unless there's an issue with the CSS/JS files you've pasted in, I can't spot any issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;&lt;IMG src="https://cdn2.hubspot.net/hubfs/1951013/Logos/stephanieogaygarcialogo_black.png" border="0" alt="Stephanie O'Gay Garcia" width="300" /&gt;&lt;/A&gt;HubSpot Design / Development&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity" target="_blank"&gt;Website&lt;/A&gt; | &lt;A href="http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity" target="_blank"&gt;Contact&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#32C43F"&gt;&lt;I&gt;If this helped, please mark it as the solution to your question, thanks!&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 12:42:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/218287#M9884</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2018-11-26T12:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom image slider</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/339128#M16624</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can someone help, i have created the customer module but struggling with how to add images?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 16:35:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/339128#M16624</guid>
      <dc:creator>tara17x</dc:creator>
      <dc:date>2020-05-14T16:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom image slider</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/404893#M20835</link>
      <description>&lt;P&gt;Hi Stephanie,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was looking for a way to create an image slider in a custom module as well and the solution with Flickity was the first thing that actually worked for me - thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUT&lt;/STRONG&gt; - oddly enough the first image slider generated on my page doesn't seem to work, although the ones following that one are fine. Any ideas what might be causing this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gramm-medical-6269990.hs-sites.com/de/actiomedic/pflaster" target="_blank" rel="noopener"&gt;http://gramm-medical-6269990.hs-sites.com/de/actiomedic/pflaster&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance!&lt;/P&gt;&lt;P&gt;Sonja&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 08:14:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Custom-image-slider/m-p/404893#M20835</guid>
      <dc:creator>SonjaElena</dc:creator>
      <dc:date>2021-02-01T08:14:15Z</dc:date>
    </item>
  </channel>
</rss>

