Support ForumWidget widths – add "one sixth" – Support Forum https://support.ishyoboy.com/forums/topic/widget-widths-add-one-sixth/feed/ Sat, 04 May 2024 22:18:13 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/widget-widths-add-one-sixth/#post-1324 <![CDATA[Widget widths – add "one sixth"]]> https://support.ishyoboy.com/forums/topic/widget-widths-add-one-sixth/#post-1324 Thu, 05 Dec 2013 11:54:29 +0000 Kelnoo Hello

I would like to add “one sixth” to the selectable widget widths.
What (and where) do I have to add to the code to achieve this?

Many thanks

Marc

]]>
https://support.ishyoboy.com/forums/topic/widget-widths-add-one-sixth/#post-1325 <![CDATA[Reply To: Widget widths – add "one sixth"]]> https://support.ishyoboy.com/forums/topic/widget-widths-add-one-sixth/#post-1325 Thu, 05 Dec 2013 17:12:07 +0000 IshYoBoy Hi there!

We do not recommend using it as the columns will be very very small, but if you wish to you can modify the file:

wp-content\themes\minicorp\assets\framework\wp\widgets\widgets.php

And add a new line on line 26 and so:

$row .= "\t<option value='2' " . selected( $instance['widget_width'], '2', false) . ">One sixth</option>\n";

Please note this change is not update safe so you will have to reproduce the change every time you update Minicorp to a newer version.

If you know what you’re doing you might consider using filters to control this.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>