• Resolved myhero

    (@myhero)


    Hi there,

    Just need a little help. I’m trying to insert this into a papge template.

    <div style=”display:none” class=”fancybox-hidden”> <div id=”contact”>
    <?php echo do_shortcode(‘[contact-form-7 id=”115″ title=”Contact form 1″]’); ?>
    </div></div><?php echo do_shortcode(‘[button link=”#contact” class=”fancybox” style=”flat” size=”5″ background=”#165caa” center=”yes” icon=”icon: envelope”]I’m Interested![/button]’); ?>

    The button is displayed in the page and when I hover over the button I see the link appear URL/#contact.

    But the form shortcode does not execute. What could I do to get this to work?

Viewing 1 replies (of 1 total)
  • Thread Starter myhero

    (@myhero)

    Replaced the button shortcode with a button image, [a href][img] and used prettyPhoto instead of easy fancybox.

Viewing 1 replies (of 1 total)
  • The topic ‘Execute shortcode in page template’ is closed to new replies.