Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, this should be possible.

    The first thing to do would be to remove the contact form from the bottom of the Ad details page. You can do that by adding the code below in your theme functions.php file

    
    add_filter( "wp", "hide_contact_form", 50 );
    function hide_contact_form() {
        if( is_singular( 'advert' ) ) {
            remove_action( 'adverts_tpl_single_bottom', 'adverts_single_contact_information' );
            remove_action( 'adverts_tpl_single_bottom', 'adext_contact_form' );
        }
    }
    

    Next, you will need to somehow include the code for the contact form in the sidebar, most likely the easiest way to do that would be to add a PHP code directly in your theme single Advert template

    
    <?php adext_contact_form( get_the_ID() ) ?>
    

    One other option would be to create a new widget which would include the contact form in the sidebar.

    Thread Starter jromaine

    (@jromaine)

    Thank you Greg.

    Mate, would you be interested in some paid work?

    I’ve spent the best part of 2 weeks trying to find a simple classifieds plugin that appeals to me.

    Heres a quick mockup of something I had in mind.

    http://romaines.com.au/wp/marketplace-ad.jpg

    Id be happy to speak with you via Skype or email? john seopoint com au

    Plugin Author Greg Winiarski

    (@gwin)

    I am afraid that personally, i do not really have time for a paid work, but you can email me via the contact form here https://wpadverts.com/contact/ the changes you would like to make and i will send you a quote back.

    If it would work for you, then someone i work with on daily basis could be able to develop the customization for you (i would just supervise it).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Contact form in sidebar?’ is closed to new replies.