• Resolved laCabriole

    (@lacabriole)


    hi ,

    I built this page with Events Manager on a site using the responsive theme. The single event is set to use a full width template of the theme. All works well except on small screens the title of the plugin generated single event is obviously not known by the themes mobile menu giving out an “undefined” , which is not really desirable.

    Is there a common way to display single events via an existing page instead via the plugIn template when clicking on an event link in the events list? When this existing page would be named “Event” at least that would be in the menu’s current page title.
    What or which template tag would be in the page or the template the page uses to achieve the according single event display?

    Any hint would be appreciated … Thanx
    and regards
    Micky

    http://wordpress.org/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Micky,

    You should be able to use the standard WordPress function

    <?php the_title(); ?>

    on single event pages.

    Is your theme using that tag?

    Thread Starter laCabriole

    (@lacabriole)

    Hi caimin,
    thanx for the reply…
    no, that tag is not used in the full width template of the theme . But I do not understand how this tag would help the mobile menu to display the name of the displayed dynamic page. Saying this: where would you put the tag to achieve a correct current page name display in the mobile menu ( i’m assuming you have looked at the mobile menu used in the theme) ?

    the themes full width template is basically this:

    <?php while (have_posts()) : the_post(); ?>
    
            <?php get_template_part( 'loop-header' ); ?>
    
    			<?php responsive_entry_before(); ?>
    			<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    				<?php responsive_entry_top(); ?>
    
                    <?php get_template_part( 'post-meta-page' ); ?>
    
                    <div class="post-entry">
                        <?php the_content(__('Read more ›', 'responsive')); ?>
                        <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
                    </div><!-- end of .post-entry -->
    
    				<?php get_template_part( 'post-data' ); ?>
    
    				<?php responsive_entry_bottom(); ?>
    			</div><!-- end of #post-<?php the_ID(); ?> -->
    			<?php responsive_entry_after(); ?>
    
    			<?php responsive_comments_before(); ?>
    			<?php comments_template( '', true ); ?>
    			<?php responsive_comments_after(); ?>
    
            <?php
    		endwhile; ?>

    I tested your site by going to a single events page and then resizing the browser until the layout changed and I saw the error message you mentioned.

    That said, I think we’ve misunderstood each other. I thought you meant the problem was with the title, but it’s actually with the title as it appears in the menu.

    That means you should probably look in the header file of your theme, rather than the single post template. You need to find the point where that menu is generated.

    Depending on how it’s written, you’d probably need to use either

    <?php the_title();?>

    or

    <?php get_the_title(): ?>

    Thread Starter laCabriole

    (@lacabriole)

    hi caimin,

    Thanx for your help, you put me on the right track.

    … it was no problem caused by events manager. It was an issue in the JS script for the mobile menu of that version of the theme which handles the page title to current page thing … the conditional could not handle a custom post format. I added the missing condition for the singel-event class. Works like a charm. Though it is not comprehensible that the fall through of the script didn’t catch the case.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘single Event Title in Mobil menu of responsive theme’ is closed to new replies.