Appointment + Front-End in PopUp

Hey there,

i want the front end of [app_monthly_schedule] or other shortcuts display in a PopUp. I've installed Pop Overs but if i click on Next Month, the next content won't be displayed correctly. A new Page become opened with parts of code.

Can you help?

  • Patrick
    • Support Monkey

    Hi @feelix

    Welcome to the forums!

    Unfortunately, the shortcodes won't work properly in such a setup because the query string appended to the URL will open a new page if it isn't already open.

    For example, clicking "Next" from this page in your popup...
    http://www.example.com/make-an-appointment/

    ...will redirect to this...
    http://www.example.com/make-an-appointment/?wcalendar=1359676800#app_schedule

    What you can do to get around this behavior is create a custom page template, add your shortcodes to a page and assign your custom template to that page. Then you can use a bit of Javascript to open the URL of your appointments page in a custom popup (which is actually a new browser window), then add some CSS magic to your theme's style-sheet to hide whatever you don't need in the template (like maybe header & footer). Navigating to "Next" or "Previous" will remain in that same window.

    Here's a tutorial I wrote a while back on how do create a popup Help Center:
    https://premium.wpmudev.org/blog/wordpress-site-popup-help/

    You should be able to adapt what you find there to your purpose.

  • feelix
    • WPMU DEV Initiate

    One further question: How can I distinguish my PopUp Page from other Pages with css? I have created an own template for the PopUp site but i don't know which tag i need. In your help-center tutorial you use something like:

    .page-template-template-site-guide-php #branding, .page-template-template-site-guide-php #top-nav, .page-template-template-site-guide-php #bottom-footer {
    display:none;
    }

    And know i have to select in style.css the container with id=header in my header.php. But only in this template. You know what I mean?

    Thank you!

    EDIT:: SOLVED !!!

  • aristath
    • Recruit

    The original poster of this issue is no longer an active member on these forums.

    I am marking this issue as resolved.
    If however at some time the member becomes active again and the issue still exists, don't hesitate to reopen it and post an update on your current status.

    Cheers!
    Ari.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.