Jump to content

[Share] Custom Section under Header on Video Detail Page

Recommended Posts

Posted (edited)

To create a custom section under Header on Video Detail Page, you can follow these.

this will require a custom plugin

#1. Create a Page in Not Linked.

image.png.646443f907a94948bdf0f56cff75b06f.png

 

Use Name/URL: Custom Video Header - /custom-video-header

image.png.4f3c9a619606d6bbf9da4754e77adf56.png

#2. Next, design the page. Here I use a simple design.

image.png.56b192a4adba394491c9025dcb718e1a.png

#3. Install this plugin.

https://www.will-myers.com/products/p/section-loader-supreme

You can use code: TUAN to get 10% discount.

Plugin will give you some code to Code Injection Header/Footer

image.png.bc0eb64e3164ca9d226a569284808a46.png

image.png.aac13bad8978289d769c01dff2abdf5b.png

#4. Hover on Video Page > Click Gear icon

image.png.3ac73e21b0e2121bcb0e8e379923f33c.png

#5. Click Advanced > Page Header Code Injection

image.png.22f7a775b69c7e1326a6fbd49d2ac781.png

#6. Insert this code

<div data-wm-plugin="load" data-target="/custom-video-header"></div>

image.png.2e03464bf6f0b696a8d3a759f9ab2c38.png

#7. Use this code to Code Injection > Footer, under plugin code

image.png.0495132c797b1ce88abe7558af43cfd4.png

#8. Use this code to Custom CSS box

[data-target="/custom-video-header"] {
  display: none;
  padding-top: 100px;
}
body:has(article.lesson-item) [data-target="/custom-video-header"] {
  display: block;
}

image.png.4b6b20c7c07b13fab9bfd41d67d5a243.png

Note: 100px is space between this custom section - top of site

Result

image.png.c4e41ccf482e6a79b8f55bdc350bfae7.png

image.png

Edited by tuanphan
fix first image

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • Replies 0
  • Views 87
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.