Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Event plugin: show lay header and footer on event page

Event plugin: show lay header and footer on event page

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 29 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dabu
    wrote on last edited by dabu
    #1

    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();
    
    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by arminunruh
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      I also code custom websites or custom Lay features.
      💿 Email me here: 💿
      info@laytheme.com

      Before you post:
      1. When using a WordPress Cache plugin, disable it or clear your cache.
      2. Update Lay Theme and all Lay Theme Addons
      3. Disable all Plugins
      4. 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:
      1. Post a link to where the problem is
      2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
      3. If the problem is difficult to explain, post screenshots / link to a video to explain it
      Online Users
      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
      laytheme.com
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Search