Title: Replace widget $args
Last modified: August 21, 2016

---

# Replace widget $args

 *  [faugro](https://wordpress.org/support/users/faugro-1/)
 * (@faugro-1)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/replace-widget-args/)
 * First, I love this plugin very much. So far, i only have 2 problems
    1. With 
   this code `$span_sm = intval( $span * 3 / 2 );` 2. As on the title, could you
   please give me a clue how to do it?
 * Thanks in advanced
    Fauzi
 * [https://wordpress.org/plugins/ig-pagebuilder/](https://wordpress.org/plugins/ig-pagebuilder/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [www.AloGam.com](https://wordpress.org/support/users/son-tung-mr/)
 * (@son-tung-mr)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/replace-widget-args/#post-4970079)
 * Hi faugro,
 * Thank you for your question, i am really happy to assist you. The code that you
   mentioned is used to separate column elements. Could you please clarify your 
   problem a little bit so that i can try my best to support you?
 * Have you a good day
 * Sincerely,
    Innogears Support Team
 *  Thread Starter [faugro](https://wordpress.org/support/users/faugro-1/)
 * (@faugro-1)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/replace-widget-args/#post-4970135)
 * Great, your reply is fast 😀
    But this code produce wierd thing on the front-
   end, if i set column to 75% and 25% it will be col-md-9 col-sm-13 and col-md-
   3 col-sm-4, it will break up the responsive, i mean it look bad on small layout
   setting. I just want to remove that line.
 * The important thing is on the title
    look like on this file ig-pagebuilder\core\
   helper\shortcode.php line 1003 `$args = array( 'widget_id' => strtolower( $widget));`
   i want to change the args before_title
 *  [www.AloGam.com](https://wordpress.org/support/users/son-tung-mr/)
 * (@son-tung-mr)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/replace-widget-args/#post-4970141)
 * Hi faugro,
 * Thank you for your suggestion and quick reply. My friend, Adam, resolved the 
   similar problem in the following topic, please feel free to take a look at it
   
   [http://wordpress.org/support/topic/3-columns-layout-50-25-25-is-not-responsive?replies=11](http://wordpress.org/support/topic/3-columns-layout-50-25-25-is-not-responsive?replies=11)
 * Have you a good time
 * Sincerely,
    Innogears Support Team
 *  Thread Starter [faugro](https://wordpress.org/support/users/faugro-1/)
 * (@faugro-1)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/replace-widget-args/#post-4970162)
 * Ok, i also think to use css to edit it, but, it’s not to efficient i think, there
   will be many case that code will break the responsive. so i still think it’s 
   better to remove that line.
    I try to move all code from ig-pagebuilder\core\
   shortcode\layout\column.php to my theme’s function.php and remove `$args = array('
   widget_id' => strtolower( $widget ) );` and it work, the question is, did you
   think this is the correct way? I think if there is `if ( ! class_exists()) {}`
   the first loaded class is will be used, but i’m not sure is the theme’s functions.
   php will always be called first, before ig-pagebuilder plugin, or not 😀
 *  [www.AloGam.com](https://wordpress.org/support/users/son-tung-mr/)
 * (@son-tung-mr)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/replace-widget-args/#post-4970196)
 * Hi faugro,
 * Thank you for your time to try new ways to make the code better. In my opinion,
   i think that it is really a good way because it works for your case. I deem that
   you are the talent of coding. Back to your next question, i think that the theme’s
   function will be called before plugin
 * Have you a good time
 * Best Regards,
    Innogears Support Team

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Replace widget $args’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ig-pagebuilder.svg)
 * [IG PageBuilder](https://wordpress.org/plugins/ig-pagebuilder/)
 * [Support Threads](https://wordpress.org/support/plugin/ig-pagebuilder/)
 * [Active Topics](https://wordpress.org/support/plugin/ig-pagebuilder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ig-pagebuilder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ig-pagebuilder/reviews/)

## Tags

 * [column](https://wordpress.org/support/topic-tag/column/)

 * 5 replies
 * 2 participants
 * Last reply from: [www.AloGam.com](https://wordpress.org/support/users/son-tung-mr/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/replace-widget-args/#post-4970196)
 * Status: not resolved