How do you hook a contact form above the detail sidebar

This topic contains 2 replies, has 2 voices, and was last updated by  Paolo 7 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #280845

    Anthony Accetturo
    Buyer
    Post count: 76

    I need to hook a Gravity form above the sidebar on the listing page, as shown in the following image example. The Contact form is a gravity form, so I could technically hook into it im assuming using the do shortcode function. I am new to hooking and filters, so as many baby steps as possible will help me learn. The sidebar contact form that needs to be added has the dark blue background. Another concern I had was if its possible to add layouts to child theme if I make a direct edit without using a function

    EDIT: ADDED MORE DETAIL/ THIS IS FOR THE LISTING DETAIL PAGE

    I did find the following function possibly helpful

    function geodir_action_listings_sidebar_right()
    {
    if (get_option(‘geodir_show_listing_right_section’)) {
    /** This action is documented in geodirectory_template_actions.php */
    do_action(‘geodir_sidebar_right_open’, ‘listings-page’, ‘geodir-sidebar-right’, ‘geodir-sidebar-right geodir-listings-sidebar-right’, ‘http://schema.org/WPSideBar’);
    /**
    * Calls the listings page (category) right sidebar content.
    *
    * All the content for the listings page right sidebar is added via this hook.
    *
    * @since 1.0.0
    */
    do_action(‘geodir_listings_sidebar_right_inside’);
    /** This action is documented in geodirectory_template_actions.php */
    do_action(‘geodir_sidebar_right_close’, ‘listings-page’);
    }
    }

    #280995

    Anthony Accetturo
    Buyer
    Post count: 76

    I was able to figure this out, Thank you anyway for always being the best! Please close this out. Answer for future reference!

    
    
    
    remove_action('geodir_detail_sidebar_inside', 'geodir_details_sidebar_widget_area', 20);
    add_action('geodir_detail_sidebar_inside', 'geodir_details_sidebar_widget_area', 1);
    #281414

    Paolo
    Site Admin
    Post count: 31206

    Awesome, thanks for sharing! 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket