Organizer logo
-
How do I set the Organizer logo but it not appear as a Feature image also? I can’t find a function that allows me to have one but not the other.
To be clear I don’t want the feature image to show, just the Organizer logo.
Thank you
- This topic was modified 5 years, 3 months ago by popmon.
The page I need help with: [log in to see the link]
-
Hello,
The reason the Featured image is showing on your single events page, is probably because of the way you theme is set-up. EM uses your themes configuration/set-up and only replaces the CONTENT part of your theme.
You could try checking on your and disable the featured on Single pages. (This might require some custom coding on your side)
If you want to add another upload fields when creating/editing Events. You could use the plugin ACF (Advanced Custom Fields) which gives you the option to create custom fields on any WordPress Custom Post Type.
Thanks for the response. Looks like I’ll have to edit single pages.
I’m completely lost here. What should I be editing so the feature image doesn’t show? I’m not a php expert so I’m way out of my depth now.
<?php
$sidebar = $minti_data[‘select_bloglayout’];if($sidebar == ‘sidebar-right’){
$sidebarlayout = ‘sidebar-right twelve alt’;
$sidebarorientation = ‘sidebar-right’;
}
elseif($sidebar == ‘sidebar-left’){
$sidebarlayout = ‘sidebar-left twelve alt’;
$sidebarorientation = ‘sidebar-left’;
}
else{
$sidebarlayout = ‘sixteen’;
}get_header(); ?>
<div id=”page-wrap” class=”blog-page blog-single container”>
<div id=”content” class=”<?php echo esc_attr($sidebarlayout); ?> columns”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php get_template_part( ‘framework/inc/post-format/entry’, get_post_format() ); ?>
<?php if($minti_data[‘switch_sharebox’] == 1) { ?>
<?php get_template_part( ‘framework/inc/sharebox’ ); ?>
<?php } ?><?php if($minti_data[‘switch_authorinfo’] == 1) { ?>
<div id=”author-info” class=”clearfix”>
<div class=”author-image”>
“><?php echo get_avatar( esc_attr(get_the_author_meta(‘user_email’)), ‘160’, ” ); ?>
</div>
<div class=”author-bio”>
<h4><?php _e(‘About The Author’, ‘minti’); ?></h4>
<?php the_author_meta(‘description’); ?>
</div>
</div><?php } ?>
<?php if($minti_data[‘switch_relatedposts’] == 1) { ?>
<?php //for use in the loop, list 5 post titles related to first tag on current post
$tags = wp_get_post_tags($post->ID);
if($tags) {
?><div id=”related-posts”>
<h3><?php _e(‘Related Posts’, ‘minti’); ?></h3>-
<?php $first_tag = $tags[0]->term_id;
- ” rel=”bookmark” title=”Link to <?php the_title_attribute(); ?>”><?php the_title(); ?><span><?php the_time(get_option(‘date_format’)); ?></span>
$args=array(
‘tag__in’ => array($first_tag),
‘post__not_in’ => array($post->ID),
‘showposts’=>4
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?><?php
endwhile;
wp_reset_postdata();
} ?></div>
<?php } // end if $tags ?>
<?php } ?>
<?php comments_template(); ?>
<?php if($minti_data[‘switch_blogpagination’] == 1) { ?>
<div id=”post-navigation”>
<?php previous_post_link(‘%link’, ‘<div class=”prev”></div>’, FALSE); ?>
<?php next_post_link(‘%link’, ‘<div class=”next”></div>’, FALSE); ?>
</div>
<?php } ?><?php endwhile; endif; ?>
</div>
<?php if($sidebar != ‘no-sidebar’){ ?>
<div id=”sidebar” class=”<?php echo esc_attr($sidebarorientation); ?> alt”>
<?php get_sidebar(); ?>
</div>
<?php } ?></div>
<?php get_footer(); ?>
you can try something like this
1. go to your theme directory
2. create new php file ‘single-event.php’ – you can copy your theme single.php or page.php and then remove the main contenteg. maybe this snippet can help you get started
<?php get_header(); ?> <?php global $post; $EM_Event = em_get_event($post->ID, 'post_id'); ?> <div class="container" style="padding-top:10px;"> <div class="row-fluid"> <div class="span8"> <h1 class="single"><?php echo $EM_Event->output('#_EVENTNAME'); ?></h1> <div class="blockhead"> <p> <?php $startdate = $EM_Event->event_start_date;?> Datum : <?php echo $EM_Event->output('#_EVENTDATES');?>, <?php echo $EM_Event->output('#_EVENTTIMES');;?><br/> Locatie : <?php echo $EM_Event->location->location_name;?><br/> Adres : <?php echo $EM_Event->location->location_address;?>, <?php echo $EM_Event->location->location_town;?> </p> </div> <div class="entry"> <?php echo $EM_Event->post_content; ?> </div> </div> <div class="span4"> <?php echo $EM_Event->output('#_BOOKINGFORM'); ?> </div> </div> </div> <?php get_footer(); ?>
Thanks for all your help. Very much appreciated
- The topic ‘Organizer logo’ is closed to new replies.