CF7 in Fancybox without access to home.php
-
Hello,
i use Easy Fancybox to open CF7 in a fancy box ^^. My theme is Responsive from Cyberchimps. This theme uses an user defined homepage which overrides the WordPress front page option. I use this user defined homepage because it is easier for me and because i like the arrangement of the windows they chose. But unfortunately i can’t add html-code which i need to open CF7 in Easy Fancybox.
In other pages which i created it is no problem. In those pages i put the following code and it works fine:
<div style="display:none" class="fancybox" > <div id=fancyboxID-1 > [contact-form-7 id="8" title="MyContactForm1"] </div> <div id=fancyboxID-2 > [contact-form-7 id="9" title="MyContactForm2"] </div> </div>
But where to put the code for my homepage(first page)? I’ve put it in my header.php from my child theme after <!doctype html> but it won’t work. When i do so and click on my letter icon it just opens a small windows with the shortcode of CF (e.g. [contact-form-7 id=”8″ title=”MyContactForm1″]). What can i do to open it correctly?
- The topic ‘CF7 in Fancybox without access to home.php’ is closed to new replies.