WordPress.org

Support

Support » Plugins and Hacks » Gravity Forms Directory » [Resolved] [Plugin: Gravity Forms Directory & Addons] Add Fields Column Shifts in the Edit Forms View

[Resolved] [Plugin: Gravity Forms Directory & Addons] Add Fields Column Shifts in the Edit Forms View

  • After I added the Add On, the Add Fields Area on the right side shifts on me. The 3 Fields areas do not collapse and when I scroll down, that whole area shifts down so I can not get into the Post Fields area.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Geet Jacobs

    @geetjacobs

    Hello there,

    I have the same issue on my 24in screen, I can not see the bottom box. So for me to use those fields I need to disable the plugin then reactivate.

    Any chance of having it operate like the wordpress side area, where it remembers which were open and closed?

    Thanks!

    P.S. Also there is an issue where if you add a directory to a page, it includes the admin.css file in the page which is a bit messy.

    Geet Jacobs

    Geet Jacobs

    @geetjacobs

    I found the line of code to comment out so that I dont need to disable the plugin to access the bottom box.

    page: gravity-form-addons.php
    code line: 52
    comment out : echo ‘.gforms_edit_form ul.menu li ul { display:block!important; } ‘;

    now the boxes will behave like that did before using the addons.

    Plugin Author Zack Katz

    @katzwebdesign

    This is fixed now in version 2.2.1 of the plugin, just released. Once you upgrade, you need to add this to your functions.php file:

    add_filter('kws_gf_display_all_fields', create_function('$content', 'return "";') );

    Sorry for the delay!

    CoachFletch

    @coachfletch

    Zach,

    I am using the Genesis theme and a Streamline child theme.

    Both have function.php templates

    Which do I have to add the line above to?

    Thanks,

    Dale

    Plugin Author Zack Katz

    @katzwebdesign

    Hi Dale,
    You should add the code to your child theme. When modifying anything theme-related, always edit the child theme; this makes it so that you can upgrade your parent theme without losing those modifications.

    CoachFletch

    @coachfletch

    Great Zack,

    I appreciate the guidance. And I imagine that it does not matter where in the functions.php template you put it…. as long as it is on a separate line. Correct?

    Thanks again Zack!

    Dale

    Plugin Author Zack Katz

    @katzwebdesign

    Correct. Adding functions to the bottom of the file is a good idea. Make sure they go before the ?> (if there is one) at the end of the file.

    CoachFletch

    @coachfletch

    This is how the functions.php template reads now:

    Can you suggest exactly how it needs to be added?

    <?php
    // Start the engine
    require_once(TEMPLATEPATH.’/lib/init.php’);

    // Add topnav section
    add_action(‘genesis_before_header’, ‘streamline_include_topnav’);
    function streamline_include_topnav() {
    require(CHILD_DIR.’/topnav.php’);

    }

    // Add widgeted footer section
    add_action(‘genesis_before_footer’, ‘streamline_include_footer_widgets’);
    function streamline_include_footer_widgets() {
    require(CHILD_DIR.’/footer-widgeted.php’);
    }

    // Create custom footer section
    remove_action(‘genesis_footer’, ‘genesis_do_footer’);
    add_action(‘genesis_footer’, ‘custom_footer’);
    function custom_footer() {
    require(CHILD_DIR.’/custom-footer.php’);
    }

    // Add Custom Fields to Coaches Directory
    add_action(‘genesis_before_post_content’, ‘ntg_add_coach_info’);
    function ntg_add_coach_info() {
    global $post;
    if(in_category(79)) { ?>

    <div class=”coach-info”>
    <p>Phone: <?php echo get_post_custom_values(‘phone’, $post->id); ?></p>
    <p>Email: id); ?>”><?php echo get_post_custom_values(’email’, $post->id); ?></p>
    <p>Website: id); ?>”><?php echo get_post_custom_values(‘website’, $post->id); ?></p>
    </div>
    <?php
    }
    }

    genesis_add_image_size(‘home-top’, 400, 270, TRUE);
    genesis_add_image_size(‘home-bottom’, 215, 140, TRUE);
    genesis_add_image_size(‘home-extra’, 120, 100, TRUE);
    genesis_add_image_size(‘thumbnail2’, 100, 100, TRUE);
    genesis_add_image_size(‘thumbnail3’, 110, 110, TRUE);
    genesis_add_image_size(‘thumbnail4’, 120, 120, TRUE);

    // Creates custom sidebar for pages other than blog
    genesis_register_sidebar(array(
    ‘name’=>’Page Sidebar’,
    ‘description’ => ‘This is a custom sidebar that loads on pages only’,
    ‘id’ => ‘sidebar-page’
    ));

    // Force layout on homepage
    add_filter(‘genesis_options’, ‘streamline_home_layout’, 10, 2);
    function streamline_home_layout($options, $setting) {
    if($setting == GENESIS_SETTINGS_FIELD) {
    if(is_home())
    $options[‘site_layout’] = ‘content-sidebar’;
    }
    return $options;
    }

    // Add two sidebars to the main sidebar area
    add_action(‘genesis_after_sidebar_widget_area’, ‘streamline_include_bottom_sidebars’);
    function streamline_include_bottom_sidebars() {
    require(CHILD_DIR.’/sidebar-bottom.php’);
    }

    // Register sidebars
    genesis_register_sidebar(array(
    ‘name’=>’Sidebar Bottom Left’,
    ‘description’ => ‘This is the bottom left column in the sidebar.’,
    ‘before_title’=>'<h4 class=”widgettitle”>’,’after_title’=>'</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Sidebar Bottom Right’,
    ‘description’ => ‘This is the bottom right column in the sidebar.’,
    ‘before_title’=>'<h4 class=”widgettitle”>’,’after_title’=>'</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Homepage’,
    ‘description’ => ‘This is the featured column of the homepage.’,
    ‘before_title’=>'<h4 class=”widgettitle”>’,’after_title’=>'</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Footer #1’,
    ‘description’ => ‘This is the first column of the footer section.’,
    ‘before_title’=>'<h4 class=”widgettitle”>’,’after_title’=>'</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Footer #2’,
    ‘description’ => ‘This is the second column of the footer section.’,
    ‘before_title’=>'<h4 class=”widgettitle”>’,’after_title’=>'</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Footer #3’,
    ‘description’ => ‘This is the third column of the footer section.’,
    ‘before_title’=>'<h4 class=”widgettitle”>’,’after_title’=>'</h4>’
    ));
    genesis_register_sidebar(array(
    ‘name’=>’Footer #4’,
    ‘description’ => ‘This is the fourth column of the footer section.’,
    ‘before_title’=>'<h4 class=”widgettitle”>’,’after_title’=>'</h4>’
    ));

    // Add Read More link to manual excerpts.
    add_action(‘the_excerpt’, ‘child_add_manual_read_more’, 20);
    function child_add_manual_read_more($excerpt) {

    if ( has_excerpt() ) {

    // Trim the newline.
    $excerpt = rtrim($excerpt);

    // Check for the <p> tags
    if ( ‘<p>’ == substr($excerpt, 0, 3) && ‘</p>’ == substr($excerpt, -4) )
    $excerpt = sprintf( ‘<p>%s …Read More</p>’, substr($excerpt, 3, -4), get_permalink() );
    }
    return $excerpt;
    }

    // Changes automatic excerpt from […] to …Read More.
    add_filter(‘excerpt_more’, ‘new_excerpt_more’);
    function new_excerpt_more($more) {
    return ‘ …Read More‘;
    }

    ?>

    Plugin Author Zack Katz

    @katzwebdesign

    At the bottom of the file:

    add_filter('kws_gf_display_all_fields', create_function('$content', 'return "";') );
    
    ?>
    CoachFletch

    @coachfletch

    Got it Zack. Thanks it is working like a charm now.

    All I have to do is figure out how to make it work for what i want it to do now.

    Plugin Author Zack Katz

    @katzwebdesign

    I added a checkbox in version 2.3.1 to turn on and off the menu expanding.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] [Plugin: Gravity Forms Directory & Addons] Add Fields Column Shifts in the Edit Forms View’ is closed to new replies.
Skip to toolbar