Using Pojo form shortcode in child theme template file

The support forum is open for members only. To add a topic or reply in the forum, please login or register.

Support Forum Moved
The Pojo Themes support has been transferred to a faster and more personal ticketing platform, so the forums are no longer active.
  • If you want to learn how to use Pojo themes, check out our extensive documentation guides.
  • Need help with using our themes? Contact us with a detailed explanation of your issue in the support page.
  • Have a pre-sale question or other inquiry? Feel free to contact us about it.

Support Forums Support (Legacy) Using Pojo form shortcode in child theme template file

This topic is: Resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1312

    Yaniv Wainer
    Participant

    Hi,

    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,
    Yaniv

    #1313

    Noa
    Keymaster

    Hello Yaniv,

    What exactly do you want to set with the form?

    #1314

    Yaniv Wainer
    Participant

    I just want to show the form.

    #1317

    Noa
    Keymaster

    If you want to show the form in the footer, you can just drag the forms widget in Appearance > Widgets to the footer area..

    #1318

    Yaniv Wainer
    Participant

    That’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>

    #1319

    Boaz
    Keymaster

    Hi 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

    #1320

    Yaniv Wainer
    Participant

    Sure. 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:

    Add a new widget area to a WordPress theme

    and inserting the form as a widget in the newly created sidebar.

    Thank you.

    #1329

    Boaz
    Keymaster

    So you fixed it?
    Great 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘Support (Legacy)’ is closed to new topics and replies.