Event plugin: show lay header and footer on event page
-
I installed Eventon Plugin as an event calendar, which works fine with shortcodes inside a page of lay theme.
The plugin also generates a page for each event (custom post type?), and I was able to configure it, but it doesn't work perfectly:
- example of an event: https://tonhalle.at/eventon/der-toepferbrunch-21/
- if logged in, the page shows the event, the site title (logo) and the hamburger menu, and a "back to all events" button which I hard coded into the plugin page template
- but it doesn't show the footer
- if not logged in, it even shows only the site title (logo) and the event, but no hamburger, no footer and no "back to all events" button
Below you can find the code of the php file that is used by the plugin for the single event pages. It's a mix from the lay theme page.php and from the plugins code.
Could anybody help…
- why are some parts only shown wenn logged in?
- why is the footer never shown?
It's probably just some small changes in the php below, but I don't know where (tried a few things already, nothing worked).
Thanks in advance!
<?php get_header(); ?> <?php echo LayIntro::getMarkup(); echo LaySearch::getMarkup(); if ( post_password_required( $post ) ) { echo get_the_password_form(); } else { if ( class_exists('WooCommerce') && have_posts() ) { global $post; $content = get_the_content(); if(trim($content) != '') { ?> <div id="lay-woocommerce" class="lay-textformat-parent"> <?php the_content(); ?> </div><!-- #lay-woocommerce --> <?php } } // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } do_action('eventon_before_header'); // you can also pass a lang value in below function to create fixed lang single event page. // this value will be overriden by language corresponding events do_action('eventon_before_main_content'); ?> <div id='main_single'> <div class='evo_page_body'> <?php do_action('eventon_single_content_wrapper');?> <?php /* The loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php evo_get_template_part('content','single-event');?> <?php endwhile; ?> <div class="eventpage_button"><a class="laybutton1 laybutton" href="https://tonhalle.at/events/" data-title="Event-Übersicht" data-type="page">Zur Event-Übersicht</a></div> </div> <?php do_action('eventon_single_sidebar'); // DEP ?> <?php do_action('eventon_single_after_loop'); ?> </div><!-- #primary --> <?php do_action('eventon_after_main_content'); $layout = Lay_Layout::getLayoutInit(); echo $layout; ?> <div id="lay-overlays"> <?php echo Lay_Overlays::getOverlays($layout); ?> </div> <?php echo ProjectsOverlaysOptions::getMarkup(); ?> <?php } get_footer(); -
i think the footer is only shown based on the post type
in lay options → footers, you can show hide the footer for categories, posts, pages.
this is probably a new post type, there is no option for this
i don't know why some things show when youre logged in as an admin and some dont, maybe disable the plugin fastest cache?
i think the compatibility is limited because its just a post type that lay theme never uses -
@dabu do you mind sharing how you got a calendar to work? Would love to know.
You can reach me at info@remcovandun.nl -
@dabu do you mind sharing how you got a calendar to work? Would love to know.
You can reach me at info@remcovandun.nl@Remco-van-Dun Unfortunately I didn't find a solution. I would still be interested though.
-
But, what you achieved at https://tonhalle.at/events/ is exactly what I'm trying.
Would love to hear about this and might be able to compensate you for your time. -
hey im reading this again.
if you want to use eventon and have a budget for this i can probably make it compatible with lay theme for a few hundred € -
But, what you achieved at https://tonhalle.at/events/ is exactly what I'm trying.
Would love to hear about this and might be able to compensate you for your time.@Remco-van-Dun said in Event plugin: show lay header and footer on event page:
But, what you achieved at https://tonhalle.at/events/ is exactly what I'm trying.
Would love to hear about this and might be able to compensate you for your time.The Shortcode for the coming events is:
[add_eventon_list number_of_months="24" hide_month_headers="yes" hide_past="yes" cal_id="zukunft" accord="yes" hide_mult_occur="yes"]for the past events:
[add_eventon_el el_type="pe" number_of_months="24" sep_month="no" accord="yes" event_order="DESC" month_order="DESC" hide_mult_occur="yes"]Like this it is all shown on the same page. Since you asked, I had a look again at the problem, and I noticed that now the single event pages work (hamburger navigation is shown), it only misses the footer now (even for logged out users). So if someone finds out how I can put a specific page (here: my footer page) into the php file of the single event, that would be amazing! Is there a possibility to reference a page with php?
-
Thanks both for replying, I also got this to work yesterday but now looking at ways to change the styling to my liking. Im sorry I'm not sure how to help you with the footer page
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Our Web Development company: 100k.studio
Want to tip me? https://www.paypal.com/paypalme/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it