Title: Problem Contactform / easyfancybox
Last modified: August 22, 2016

---

# Problem Contactform / easyfancybox

 *  [FutureGrowing](https://wordpress.org/support/users/futuregrowing/)
 * (@futuregrowing)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problem-contactform-easyfancybox/)
 * Hi everybody,
 * First of all sorry for my bad english.
 * I have a problem with using easy fancybox and contactform7 in my functions.php
 * I edited my functions.php so you have request the price of a product.
 * add_filter(‘woocommerce_empty_price_html’, ‘custom_call_for_price’);
 * function custom_call_for_price() {
    return ‘Call for price’; }
 * No i wanted to change this so when clicking on call for price it pop ups a contact
   form.
 * i changed it like this:
 * add_filter(‘woocommerce_empty_price_html’, ‘custom_call_for_price’);
 * function custom_call_for_price() {
    return ‘[Prijs aanvraag](https://wordpress.org/support/topic/problem-contactform-easyfancybox/?output_format=md#contact_form_pop)
   <div style=”display:none” class=”fancybox-hidden”> <div id=”contact_form_pop”
   > [contact-form-7 id=”2302″ title=”Prijsaanvraag”] </div> </div> ‘; }
 * But now, when clicking on Prijs aanvraag (price request) it shows
    The requested
   content cannot be loaded. Please try again later.
 * here is the link: [http://test.futuregrowing.nl/shop/aquarium-paneel-540w/](http://test.futuregrowing.nl/shop/aquarium-paneel-540w/)
 * Is there anybody that can help me solving this problem? thank you!!

Viewing 1 replies (of 1 total)

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problem-contactform-easyfancybox/#post-5553643)
 * Hi FutureGrowing, you need to do (at least) two things:
    1. use the class “fancybox-
   inline” for inline content. 2. replace `[contact-form-7 id="2302" title="Prijsaanvraag"]`”
   with:
 *     ```
       '.do_shortcode('[contact-form-7 id="2302" title="Prijsaanvraag"]').'
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Problem Contactform / easyfancybox’ is closed to new replies.

## Tags

 * [contactform 7](https://wordpress.org/support/topic-tag/contactform-7/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/problem-contactform-easyfancybox/#post-5553643)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
