Support › Forums › Support (Legacy) › Using Pojo form shortcode in child theme template file
Tagged: Atlanta, Pojo Forms, shortcode
-
AuthorPosts
-
07/04/2016 at 11:22 #1312
Yaniv Wainer
ParticipantHi,
I tried showing Pojo form using its shortcode in my child theme (Atlanta) footer.php like so:
<?php echo do_shortcode(‘[pojo-form id=278]‘); ?>But nothing shows…
Can you point me in the right direction?
Thanks,
Yaniv07/04/2016 at 11:26 #1313Noa
KeymasterHello Yaniv,
What exactly do you want to set with the form?
07/04/2016 at 11:28 #1314Yaniv Wainer
ParticipantI just want to show the form.
07/04/2016 at 11:31 #1317Noa
KeymasterIf you want to show the form in the footer, you can just drag the forms widget in Appearance > Widgets to the footer area..
07/04/2016 at 11:36 #1318Yaniv Wainer
ParticipantThat’s not what I’m aiming for.
In my custom footer.php I add a bit of HTML at the bottom, along with the shortcode for the form. But the shortcode doesn’t work.
<div class=”sliding-panel”>
<div class=”sliding-panel-btn”>
<div>צור קשר</div>
</div>
<div class=”sliding-panel-content”>
<?php echo do_shortcode(‘[pojo-form id=278]‘); ?>
</div>
</div>07/04/2016 at 14:44 #1319Boaz
KeymasterHi Yaniv,
Can you explain me what exactly is your goal?
Why are you trying to do it through editing the footer.php and with a widget?Thank you
07/04/2016 at 16:58 #1320Yaniv Wainer
ParticipantSure. If you look on the left side of page, you will see a blue tab that says “Contact” in Hebrew. Hovering over it opens a sliding panel. I want a Pojo form to be there. I’m using footer.php just to add the HTML.
But I sorted it out myself by creating a “siderbar” (widget area) using this tutorial:
https://www.buckleupstudios.com/blog/add-a-new-widget-area-to-a-wordpress-theme/and inserting the form as a widget in the newly created sidebar.
Thank you.
10/04/2016 at 10:33 #1329Boaz
KeymasterSo you fixed it?
Great 🙂 -
AuthorPosts
- The forum ‘Support (Legacy)’ is closed to new topics and replies.
