Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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
8 Posts 3 Posters 261 Views 2 Watching
  • 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
      • R Offline
        R Offline
        Remco van Dun
        wrote on last edited by
        #3

        @dabu do you mind sharing how you got a calendar to work? Would love to know.
        You can reach me at info@remcovandun.nl

        D 1 Reply Last reply
        0
        • R Remco van Dun

          @dabu do you mind sharing how you got a calendar to work? Would love to know.
          You can reach me at info@remcovandun.nl

          D Offline
          D Offline
          dabu
          wrote on last edited by
          #4

          @Remco-van-Dun Unfortunately I didn't find a solution. I would still be interested though.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Remco van Dun
            wrote on last edited by
            #5

            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.

            D 1 Reply Last reply
            0
            • arminunruhA Offline
              arminunruhA Offline
              arminunruh
              Global Moderator
              wrote on last edited by
              #6

              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 €

              1 Reply Last reply
              0
              • R Remco van Dun

                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.

                D Offline
                D Offline
                dabu
                wrote on last edited by dabu
                #7

                @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?

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Remco van Dun
                  wrote on last edited by Remco van Dun
                  #8

                  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

                  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

                  Our Web Development company: 100k.studio

                  Want to tip me? https://www.paypal.com/paypalme/arminunruh

                  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
                  C
                  condriaco
                  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