• Resolved unityscot

    (@unityscot)


    I have a problem that I need to get fixed before going Live.

    When I create an event to test the system, it works well. That is, until I open the published event. I then has a page sidebar showing my widgets, and no way to get rid of it. I’ve removed them in all the Events pages using the page editor and they dont show in the event preview before submitting, but they cannot be removed on published events for some reason as there is no page editor available.

    The link provided shows what I mean.

    The bottom image shows how it looks in Event Preview. The top one shows the published event, which is distorted and crushed into a small space.

    How can I remove this without removing all sidebars from all pages?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter unityscot

    (@unityscot)

    This is the code that I have:

    <?php
    /**
     * The template for displaying all single posts.
     *
     * @package pandrah
     */
    
    get_header(); ?>
    
    	<div id="primary-mono" class="content-area <?php do_action('pandrah_primary-width') ?>">
    		<main id="main" class="site-main" role="main">
    
    		<?php while ( have_posts() ) : the_post(); ?>
    
    			<?php get_template_part( 'modules/content/content', 'single' ); ?>
    
    			<?php //pandrah_post_nav(); ?>
    
    			<?php
    				// If comments are open or we have at least one comment, load up the comment template
    				if ( comments_open() || get_comments_number() ) :
    					comments_template();
    				endif;
    			?>
    
    		<?php endwhile; // end of the loop. ?>
    
    		</main><!-- #main -->
    	</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    

    I have tried it with and without

    <?php get_sidebar(); ?>

    And nothing changes with regard to the width of the listings.

    The content of the sidebar is taken out, but the sidebar itself is still there, but empty.

    • This reply was modified 5 years, 5 months ago by unityscot.
    Thread Starter unityscot

    (@unityscot)

    This is what it looks like without

    <?php get_sidebar(); ?>

    https://rock.scot/sidebar.PNG

    Hi @unityscot ,

    We NEED the option added to single event page to remove the theme sidebar the same way we can on all other pages.

    1. As you said you can manage theme sidebar with <?php get_sidebar(); ?>.
    2. If you want to remove single event listing sidebar then you need to override template file called content-single-event_listing.php
    and remove the below code from that file <?php get_event_manager_template_part( 'content', 'single-event_listing-organizer' ); ?>

    To override template file please follow this doc https://www.wp-eventmanager.com/template-files-override/

    Thank you

    Thread Starter unityscot

    (@unityscot)

    <?php get_sidebar(); ?>

    I understand that, have removed it, but had to use Yellow Pencil to make the page full width. It looks OK now, but not as perfect as I’d like.

    There are other issues, but that will need a new thread.

    Thanks for your help on this one, even tho you completely missed the point I was making about adding “Page Attributes in the backend for admins to remove the theme sidebar via your page. Perhaps you’ll add it in a future update. Who knows.

    Thanks for your help so far.

    Hi @unityscot ,
    Sorry for the inconvenience but that template can’t be provide from plugin. All the wordpress default process templates are rendered from the theme side and you are try to say that this is must be our plugin feature. Simple answer is that’s not possible in wordpress if we want to make scalable plugin.

    I understand that you want to make your single event page according to your design but you need to abjust few things from your theme side.

    Thank you

    I also think you miss my point about adding the remove sidebar table I suggested adding in. I mean the theme sidebar, not your own one.

    We need that option when editing the single event page. The plugin will not look good in many themes the theme sidebar still there, and no way of removing it.

    I was about to post this as my 3rd issue: How to EASILY REMOVE the sidebar in the default theme. I think this would solve a lot of issues with my banner image not showing up, etc.
    Did you get your issue sorted @unityscot? Please respond.

    Hi Hitesh!
    When we install the plugin and assign the event listings page, we can select Full Width instead or Default for page template by just point & click.
    However, although an events details page is created for a particular event when in edit mode, there’s no way to say “hey, I DON’T want that damn sidebar for this page! I want to use full width!” ??

    Please fix! It’s really annoying — especially for non-coders like @unityscot. Think of all the potential users who will get frustrated and look for an alternative. I am going to try your suggestion above though.

    • This reply was modified 5 years, 3 months ago by I luv EDM.

    Hi Hitesh!
    Thanks for the response. Here’s the link to the Events page.
    https://msra.or.ke/events/

    @hiteshmakvana, you stated the following above:

    remove the below code from that file
    <?php get_event_manager_template_part( ‘content’, ‘single-event_listing-organizer’ ); ?>

    But looking at the file, I see the following code block:

    <?php
    get_event_manager_template_part ( 'content', 'single-event_listing-organizer' );
    /**
     * single_event_listing_end hook
     */
    do_action ( 'single_event_listing_end' ); ?>

    So, do you mean the entire code block?
    Anywho, nothing changed…still same outcome: the right sidebar shows up since it is part of the Default theme.
    Are you saying there’s absolutely no way to force the single event listing to use the full width template?

    Please respond soonest as I have this site live and one event is simply not showing the banner image. See: https://msra.or.ke/events/

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Sidebar’ is closed to new replies.