Support

Account

Forum Replies Created

  • I have to include this code:

    include_once( 'includes/acf-accordion/acf-accordion.php' );
    
    add_filter( 'acf/accordion/dir', 'acf_accordion_dir' );
    function acf_accordion_dir( $dir ) {
        $dir = get_template_directory_uri() . '/includes/acf-accordion/';
    
        return $dir;
    }

    somewhere to get accordion to work, but I have no idea where. On github I was expecting something like: go to this file and paste this but they are not clear about it. Sorry, I am a bloody designer, can’t figure out this by myself. Thanks.

  • Yoohoo! Works perfect now! Thank you very much!

  • Not a problem! In fact, I want to show all of them but in this way:

    <div class="row">
      <div class="medium-6 columns">
        ...
      </div>
      <div class="medium-6 columns">
        ...
      </div>
    </div>
    <div class="row">
      <div class="medium-6 columns">
        ...
      </div>
      <div class="medium-6 columns">
        ...
      </div>
    </div>
    <div class="row">
      <div class="medium-6 columns">
        ...
      </div>
      <div class="medium-6 columns">
        ...
      </div>
    </div>
    etc.....

    I’m using the Zurb Foundation framework. Throwing all of them in just one <div class="row"> is not a good practice because if a div is higher than the other can break the layout. Thanks and sorry for the misunderstanding, didn’t explain in detail.

  • Hi! Now, it is showing only two of severals. Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)