If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Lets say I have a button in the sidebar
[button link=”http://www.google.com” color=”black” text=”light”]RSVP[/button]
but I want to make it 100% of the width of the sidebar ie assign a dynamic width to the buttons I use in the widget section.
Do you think it is better to create a new css for those buttons or is there some code that is parsed by the framework that can make those buttons 100% width with somethinglike
[button link=”http://www.google.com” width=”100%” color=”black” text=”light”]RSVP[/button]
you can apply custom classes to your buttons. Imho no new shortcode or shortcode modification is required. I’d create a class “button_fullwidth” and add following code to css/custom.css:
width: 100% !important;
Then use the shortcode like:
[button link="http://www.google.com" class="button_fullwidth" color="black" text="light"]RSVP[/button]
You can also use the shortcode generator….
The topic ‘100% with for buttons in sidebar’ is closed to new replies.