Ghost Plugins

View Original

Turn Into Pill Button

See this gallery in the original post

Description

Turn any button block into pill shape when hovered. This plugin uses css editor and works with all template families.


How To Install

Add a button block to any page. Set the size to whatever you like.

Once a button has been added, go to the Custom CSS Editor. Copy and paste the code below into the Custom CSS Editor box.

See this content in the original post

Customize

The code works for the medium button block. If you want to modify a small or large button, replace all .sqs-block-button-element--medium text with either .sqs-block-button-element--small or .sqs-block-button-element--large.

You can adjust both of the border-radius values to your liking if you or keep as is.


See this gallery in the original post