[PRO] Modern Events Calendar - Override SINGLE MEC EVENTS with Blank Model Page

Hello guys,

PROBLEM 01:

I’m trying to change my single-mec-events.php, inside my pro-child directory.
I’d like to put a content from single event, using a template-blank-1 template from PRO, i.e.
Unfortunately, we do not have a shortcode to single page. What the best way?

https://webnus.ticksy.com/article/8603

https://webnus.ticksy.com/article/10488/

Below, default single-mec-events.php from Webnus:

<?php
/** no direct access **/
defined('_MECEXEC_') or die();
/**
* The Template for displaying all single events
*
* @author Webnus <info@webnus.biz>
* @package MEC/Templates
* @version 1.0.0
*/
get_header('mec'); ?>
<?php do_action('mec_before_main_content'); ?>
<section id="<?php echo apply_filters('mec_single_page_html_id', 'main-content'); ?>" class="<?php echo apply_filters('mec_single_page_html_class', 'mec-container'); ?>">
	<?php while(have_posts()): the_post(); ?>
		<?php $MEC = MEC::instance(); echo $MEC->single(); ?>
	<?php endwhile; // end of the loop. ?>
	<?php comments_template(); ?>
</section>
<?php do_action('mec_after_main_content'); ?>
<?php get_footer('mec');

The template-black-1.php from PRO:

<?php x_get_view( x_get_stack(), 'template', 'blank-1' ); ?>

PROBLEM 02:

I have tried to import my custom.css to MEC, but default fonts won’t load Typekit entirely.

Thank you very much.

Hi There,

Can you clarify what shortcode you’re looking for?
Let say for example you are using integrity stack. This line of code <?php x_get_view( x_get_stack(), 'template', 'blank-1' ); ?>, is looking for this file: wp-content\themes\pro\framework\views\integrity\template-blank-1.php The content of that file is like this:

<?php

// =============================================================================
// VIEWS/INTEGRITY/TEMPLATE-BLANK-1.PHP (Container | Header, Footer)
// -----------------------------------------------------------------------------
// A blank page for creating unique layouts.
// =============================================================================

?>

<?php get_header(); ?>

  <div class="x-container max width offset">
    <div class="x-main full" role="main">

      <?php while ( have_posts() ) : the_post(); ?>

        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
          <div class="entry-wrap">
            <?php x_get_view( 'global', '_content', 'the-content' ); ?>
          </div>
        </article>

      <?php endwhile; ?>

    </div>
  </div>

<?php get_footer(); ?>

Now, feel free to include the content structure on your single-mec-events.php file on your child theme without the file header and footer:

  <div class="x-container max width offset">
    <div class="x-main full" role="main">

      <?php while ( have_posts() ) : the_post(); ?>

        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
          <div class="entry-wrap">
            <?php x_get_view( 'global', '_content', 'the-content' ); ?>
          </div>
        </article>

      <?php endwhile; ?>

    </div>
  </div>

What I meant was, you don’t need to worry about this line: <?php x_get_view( x_get_stack(), 'template', 'blank-1' ); ?> because it is just referring to a file. If you will include the content of the file on the single-mec-events templates then you can achieve the same blank structure.

Problem 02.
We need to check this issue directly. Please provide site URL, wordpress and FTP credentials on a secure note and information on which font is not loading.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.