이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Sticky Block for Gutenberg Editor

설명

Summary

The Gutenberg Sticky Block can be added to any Post or Page and will be sticky as soon as it hits the top of the page after you scroll down. The Sticky Block can contain any other Blocks (Paragraphs, Images, etc.), and can also be used in other Blocks (e.g. Column or Table).

The main principle is the same as my Sticky Menu (Or Anything) plugin, and the basic code of that plugin has been used in this Sticky Block plugin as well. If you want to make anything sticky outside of the content area (e.g navigation menu, widgets), use the Sticky Menu (Or Anything) plugin instead of Sticky Block.

Featured BLOCK OF THE WEEK (Sep 16, 2021).

Features

  • Any Block can be added inside the Sticky Block: the Sticky Block works as a “wrapper” or “grouping” block, that can hold every other type of Block.
  • The Sticky Block can be added inside other Blocks: any block that works as a “wrapper” (such as the Columns Block or the Table Block) can also hold a Sticky Block.
  • Positioning from top (optional): you can add any amount of space between the Sticky Block and the top of the page, so that the element is not always stuck at the “ceiling” of the page.
  • Enable for certain screen sizes only (optional): you can set a minimum and/or maximum screen size where the stickiness should work. This can be handy if you have a responsive site and you don’t want your Block to be sticky on smaller screens, for example.
  • Push-up element (optional): you can pick any other element lower on the page that will push the Sticky Block up again (for example a footer, or even another Sticky Block).
  • Admin Bar aware: checks if the current user has an Admin Toolbar at the top of the page. If it has, the Sticky Block will not obscure it (or be obscured by it).
  • Z-index: in case there are other elements on the page that obscure or peek through your Sticky Block, you can add a Z-index easily. This will only be applied once the Block is sticky.

스크린샷

  • Adding a Sticky Block
  • A Sticky Block (containing a Media-Text Block) with all its options

블록

이 플러그인은 1(을)를 제공합니다.

  • Sticky

설치

  1. Install Sticky Block from the WordPress Plugin Directory. Or, if that doesn’t work:
  2. Upload the “sticky-block” directory to your “wp-content/plugins” directory.
  3. In your WordPress admin, go to PLUGINS and activate “Sticky Block”
  4. When editing a Post or Page, find the Sticky Block in the Layout section of the available Blocks.
  5. Party!

FAQ

Can I add more than one Sticky Block on a page?

Yes you can. Unlike the Sticky Menu (Or Anything) plugin (where you can select only one sticky element), the Sticky Block plugin will let you add as many Sticky Blocks as you want.

Is it possible to add some styles to the element but only when it’s sticky?

To add styles to your Block when it’s not sticky, use classname “.block-is-not-sticky”.
To add styles to your Block only when it’s sticky, use classname “.block-is-sticky”.

The following code would give your Block a red background only when it’s not sticky, and blue only when it is:

.block-is-not-sticky {
background: red;
}

.block-is-sticky {
background: blue;
}

You may need to be more specific with your CSS, to override other default styles.

I’ll need more help please!

Please go to the plugin’s support forum on WordPress.org and post a message (include a link to your site if possible).

I need some functionality that the plugin currently doesn’t support. Can you help make a custom version?

I am currently not available for any custom work.

How was this plugin made?

Sticky Block was created using the Create Guten Block Toolkit by Ahmad Awais.

후기

2022년 12월 11일
I found this plugin from a Youtube tutorial and this is really cool. Maybe there are other ways and plugins to do the same thing too, but I like the simplicity of this. Thanks for the plugin!
2021년 12월 8일
Does exactly what it's supposed to. Good support, great features.
2021년 12월 10일 2 replies
Edit: I went for the everything sticky that main one by the same dev and it worked. However I later decided not to use sticky on my site anyways. (Old review) I'd say this works in all things except one, it's not on top and when I scroll down it fades behind many of the other things displayed on the site configuration that I currently run. It was so close to perfection. I would have put five stars but for this I give three.
모든 10 평가 읽기

기여자 & 개발자

“Sticky Block for Gutenberg Editor”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Sticky Block for Gutenberg Editor”(이)가 5(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Sticky Block for Gutenberg Editor”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.11

  • Minor bug fix (thanks to @brogr for reporting)
  • WP 6.0 compatibility

1.1

  • WP 5.9 compatibility

1.0

  • Initial release of the plugin