Help Center
  • Welcome
  • Setka Editor
    • Getting started
    • Drag-and-Drop & Multiselect
    • Text editing
    • Grids and Layout
    • Images
      • Image Editor
    • Background images
    • Icons
    • Animations
    • Lists
    • Tables
    • Dividers
    • Footnotes
    • Hotspots
    • Enhance Symbols
    • Post templates
    • Buttons
    • Comments and collaboration
    • Embeds
    • Hyphenation
    • Responsive layout for mobile screens
    • Custom CSS
    • Custom JS plugins
  • Setka Content Design System Manager
    • Creating and editing styles
    • Text formats and fonts
    • Styles display for mobile mevices
    • Text and background colors
    • Dividers
    • Icons
    • Components – reusable design elements
      • Creating Components with HTML and CSS
        • CSS in components
        • Component examples
    • Configuring layout grids
    • Editing default elements with Custom CSS
    • Adding team members
  • Account Settings
    • Account settings basics
    • Access rights
    • Billing and subscription
  • Preserve your Setka Editor content after the service shutdown
  • Integrations
    • Setka and WordPress
      • Installing Setka Editor WordPress plugin
      • Launching Setka Editor on the post creation page
      • Setka Editor and WordPress compatibility
      • Setka Editor compatibility with the most popular WordPress plugins
      • Inserting graphs, charts, or diagrams into a post
      • Setka Editor and Google AMP
      • Inserting adverts into a post
      • srcset — the attribute for image size optimization
      • Page load speed optimization settings
        • Autoptimize plugin configuration
      • WordPress troubleshooting: known Issues and how to fix them
      • Preserve your Setka Editor content after the service shutdown
    • Setka and Drupal
      • Setka for Drupal — compatibility, and features
      • Installing Setka modules for Drupal
      • Setka content on AMP pages in Drupal
    • Setka and Magento
      • Installing Magento 2 extension
        • Setka Editor configuration page
      • Preserve your Setka Editor content after the service shutdown
    • Setka and HubSpot
      • Setka Editor and HubSpot Blogs
      • Setka Editor and HubSpot Landing Pages
      • Semi-gated content with a HubSpot form
      • Preserve your Setka Editor content after the service shutdown
    • Setka and Bitrix
      • Preserve your Setka Editor content after the service shutdown
    • Setka and Ghost
      • Copying and pasting posts from Setka to Ghost
    • Setka and SharePoint Online
      • Installing Setka Editor application into SharePoint Online
    • Setka and Zapier
      • Setka and Webflow
        • Exporting new posts
        • Updating exported posts
      • Setka and Shopify
    • Setka and Integromat
    • Content Cloud
  • API
    • Setka Content Cloud API
    • Webhooks
    • API for Custom CMS Integration
      • Introduction to custom integration
      • Integration with Content Design System Manager (CDSM)
        • Initial sync — receiving Setka Editor files to connect them to your CMS
        • Storing and processing Setka Editor files
        • Connecting Setka Editor files to the pages of your site
        • Receiving style updates from the Style Manager and new editor versions
      • Setka Post Editor initialization (JavaScript)
      • Integration with Style Manager (API v1, previous version)
      • Preserve your Setka Editor content after the service shutdown
    • Custom Components API
  • VIDEO TUTORIALS
    • Setka Editor Video Tutorials
  • Components Library
    • Components Library
    • Guide: Ideas for Using Setka Editor’s Components to Improve Content Design
  • Content Experience Design Best Practices
    • Guide To Designing a Great Content Experience
Powered by GitBook
On this page
  • Adding the form
  • Customizing the placeholder for the form

Was this helpful?

  1. Integrations
  2. Setka and HubSpot

Semi-gated content with a HubSpot form

PreviousSetka Editor and HubSpot Landing PagesNextPreserve your Setka Editor content after the service shutdown

Last updated 2 years ago

Was this helpful?

Gated content is an article, white paper or video, that requires the user to fill some form, register, or overcome the paywall before viewing the full version. HubSpot Forms allows you to create "half-gated" or "semi-gated" pieces of content.

Adding the form

Follow these steps to create a "gated content" effect on your post:

1. Create a short version of your post. The last screen of the post will be hidden under the overlay.

2. at the end of the post. This grid will be the overlay layer.

3. Add to this grid. Here is the starting point. Feel free to adjust the code to better fit your website styles.

position: absolute; left: 0; bottom: 0; right: 0; min-height: 100vh; margin-bottom: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(200, 200, 200, 0.9) 50%); z-index: 100

4. Add content to the overlay grid: heading and the embed component with the embed code in it.

5. If you want to redirect visitors to the full post after the form is submitted, add the redirectUrl parameter to the form initialization code with the redirect URL as a value.

Form code example:

<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
  hbspt.forms.create({
  portalId: "2624364",
  formId: "1ca557d4-2121-4e7d-9ea4-8a44d90f2a11",
  redirectUrl: "https://setka.io/"
});
</script>

Customizing the placeholder for the form

In the example above the form is located on a placeholder. Here is how you can customize its appearance in the custom CSS field:

position: absolute; left: 0; bottom: 0; right: 0; min-height: 100vh; /* maximize grid size to fit screen*/
margin-bottom: 0; /* remove bottom margin */
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(200, 200, 200, 0.9) 50%); /* background from transparent to semi-transparent grey */
z-index: 100 /* place grid over other page content*/
  • You can maximize the grid to fit the screen.

  • You can set a gradient for the background color (from transparent to semi-transparent).

  • You can set the color of the background.

You can customize the placeholder design further by changing the custom CSS.

HubSpot form
custom CSS
Video with a preview of a half-gated content piece with a HubSpot form overlay created in Setka Editor
Add a grid