Title: Medium-offset does not work
Last modified: August 21, 2016

---

# Medium-offset does not work

 *  Resolved [NevernotSean](https://wordpress.org/support/users/nevernotsean/)
 * (@nevernotsean)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/medium-offset-does-not-work/)
 * Using the Columns shortcode, I can select medium-offset but it doesn’t appear
   in the markup when my site loads.
 * In wpcolumns > plugin-shortcode.php it doesn’t look like ‘mdoff’ is included 
   at all.
 * Can you please fix this?
 * [https://wordpress.org/plugins/easy-foundation-shortcodes/](https://wordpress.org/plugins/easy-foundation-shortcodes/)

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

 *  [wneuheisel](https://wordpress.org/support/users/wneuheisel/)
 * (@wneuheisel)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/medium-offset-does-not-work/#post-4983256)
 * Ditto.
 *  [cimiakbal](https://wordpress.org/support/users/cimiakbal/)
 * (@cimiakbal)
 * [11 years ago](https://wordpress.org/support/topic/medium-offset-does-not-work/#post-4983291)
 * I have to solve by my own, here is how it looks the new /shortcode/wpcolumns/
   plugin_shorcode.php file, hope it can be useful:
 * > <?php
   > /* * *********************************************************
   >  * Row * **********************************************************/
   > function osc_theme_efs_row($params, $content = null) {
   >  extract(shortcode_atts(
   > array( ‘class’ => ” ), $params)); $result = ‘<div class=”row ‘ . $class . ‘”
   > >’; //echo ‘<textarea>’.$content.'</textarea>’; $content = str_replace(“]”,‘]’,
   > $content); $content = str_replace(“\n[“, ‘[‘, $content); $result .= do_shortcode(
   > $content); $result .= ‘</div>’;
   >  return force_balance_tags($result);
   >  }
   > add_shortcode(‘efsrow’, ‘osc_theme_efs_row’);
   >  /* * **********************************************************
   > TWO * ********************************************************* */
   > function osc_theme_efs_column_shortcode($params, $content = null) {
   >  extract(
   > shortcode_atts(array( ‘sm’ => ”, ‘lg’ => ”, ‘centeredlarge’ => ”, ‘centeredsmall’
   > => ”, ‘md’=>”, ‘smoff’ => ”, **‘mdoff’ => ”,** ‘lgoff’ => ”, ‘off’=>” ), $params));
   >  if ($centeredlarge == ‘yes’) {
   >  $centeredlarge = ‘large-centered’; } else {
   > $centeredlarge = ”; } if ($centeredsmall == ‘yes’) { $centeredsmall = ‘small-
   > centered’; } else { $centeredsmall = ”; }
   >  $arr = array(‘small’=>’sm’,’medium’=>’md’);
   >  $classes = array(); foreach (
   > $arr as $k => $aa) { if (${$aa} == 12 || ${$aa} == ”) { $classes[] = $k.’-12′;}
   > else { $classes[] = $k.’-‘ . ${$aa}; } } ** $arr2 = array(‘smoff’, ‘mdoff’,‘
   > lgoff’);** foreach ($arr2 as $aa) { $nn = str_replace(‘off’, ”, $aa); if (${
   > $aa} == 0 || ${$aa} == ”) { //$classes[] = ”; } else { $classes[] = ($nn==’
   > sm’?’small’:’large’) . ‘-offset-‘ . ${$aa}; **if($nn==’md’) $classes[] = ‘medium’.‘-
   > offset-‘ . ${$aa};** } } // if ($off != ”) { // $classes[] = ‘col-lg-offset-‘.
   > $off; // } $result = ‘<div class=”columns large-‘ . $lg . ‘ ‘ . implode(‘ ‘,
   > $classes) . ‘ ‘.$centeredsmall. ‘ ‘.$centeredlarge.’ “>’; $result .= do_shortcode(
   > $content); $result .= ‘</div>’;
   >  return force_balance_tags($result);
   >  }
   > add_shortcode(‘efscolumn’, ‘osc_theme_efs_column_shortcode’);
 *  Plugin Author [osCitas Themes](https://wordpress.org/support/users/oscitas/)
 * (@oscitas)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/medium-offset-does-not-work/#post-4983292)
 * Hi Cimiakbal,
 * Thanks for your help, we will add this patch to plugin.
 * Thanks

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

The topic ‘Medium-offset does not work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-foundation-shortcodes_73bdce.
   svg)
 * [Easy Foundation Shortcode](https://wordpress.org/plugins/easy-foundation-shortcodes/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-foundation-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-foundation-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-foundation-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-foundation-shortcodes/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [osCitas Themes](https://wordpress.org/support/users/oscitas/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/medium-offset-does-not-work/#post-4983292)
 * Status: resolved