Works with shortcodes, but "display: block;" has to be applied for every button
-
I needed a button to work with SiteOrigin’s PageBuilder. PB’s built in button widget does not look or work good at all, and other button plugins were not integrating properly with PB in widget form.
MaxButtons worked for me as a shortcode, and it looked good (though long buttons will split themselves and overlap in a very ugly manner). Applying “display:block;” fixed this, but there’s a problem: However, each button is generated with its own CSS.
Hence, the following code:
a.maxbutton-1 { display:block; }
…will only apply to the very first button you generate, not the second, third, fourth, etc. These additional buttons are generated as a.maxbutton-2, a.maxbutton-3, etc, requiring a new class conditional entry in style.css upon the generation of every button. This is frustrating, not to mention a step that can be easily overlooked.
I chose to use Standout CSS3 Buttons instead, which look similar – if, unfortunately, not as spiffy – and are generated off one class name which allows “display:block;” to automatically apply to all buttons generated.
Additionally, the MaxButtons interface has a bug where the button preview does not show the background gradient chosen. This is an additional stumbling block, especially when one has to go to the MaxButtons interface to create every new button – link and all.
- The topic ‘Works with shortcodes, but "display: block;" has to be applied for every button’ is closed to new replies.