• Hi,
    I’m trying to figure out how to make properly showed player details with styles, but with fails. I made integration already but nothing changed after it. My orginal page.php looks like this:

    <?php get_header(); ?>
    
    <?php if ( ! have_posts() ) : ?>
    <div class="content">
    	<?php get_template_part( 'framework/parts/not-found' ); ?>
    </div>
    <?php endif; ?>
    
    <?php
    //Page Builder
    $get_meta = get_post_custom( $post->ID );
    if( !empty( $get_meta[ 'tie_builder_active' ][0] ) ):
    
    		if( !empty( $get_meta[ 'featured_posts' ][0] ) )
    			get_template_part('framework/parts/featured');
    
    		if( !empty( $get_meta[ 'slider' ][0] ) && ( !empty( $get_meta[ 'slider_pos' ][0] ) && $get_meta[ 'slider_pos' ][0] == 'big' ) )
    			get_template_part('framework/parts/slider-home');// Get Slider template ?>
    	<div class="content">
    		<?php
    			if( !empty( $get_meta[ 'slider' ][0] ) && ( !empty( $get_meta[ 'slider_pos' ][0] ) && $get_meta[ 'slider_pos' ][0] != 'big' ) )
    				get_template_part('framework/parts/slider-home'); // Get Slider template
    
    			get_template_part( 'framework/blocks' );
    		?>
    	</div><!-- .content /-->
    
    <?php
    // Normal Page
    else:?>
    
    	<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    	<?php
    		if( function_exists('bp_current_component') && bp_current_component() ) $current_id = get_queried_object_id();
    		else $current_id = $post->ID;
    		$get_meta = get_post_custom( $current_id );
    
    		tie_update_reviews_info();
    
    		if( !empty( $get_meta["tie_sidebar_pos"][0] ) && $get_meta["tie_sidebar_pos"][0] == 'full' ) $content_width = 955;
    	?>
    
    	<?php if( !empty( $get_meta["tie_post_head_cover"][0] ) ) : ?>
    	<div class="post-cover-head">
    		<?php get_template_part( 'framework/parts/post-head' ); ?>
    	</div>
    	<?php endif; ?>
    
    	<div class="content<?php if( !empty( $get_meta["tie_post_head_cover"][0] ) ) echo ' post-cover';?>">
    
    		<?php if(  empty( $get_meta["tie_post_head_cover"][0] ) ||
    				( !empty( $get_meta["tie_post_head_cover"][0] ) && ( !empty( $get_meta['tie_post_head'][0] ) && $get_meta['tie_post_head'][0] != 'thumb' ) && $get_meta['tie_post_head'][0] != 'lightbox' ) ) : ?>
    
    		<?php tie_breadcrumbs() ?>
    
    		<?php endif; ?>	
    
    		<?php //Above Post Banner
    		if( empty( $get_meta["tie_hide_above"][0] ) ){
    			if( !empty( $get_meta["tie_banner_above"][0] ) ) echo '<div class="e3lan e3lan-post">' .do_shortcode( htmlspecialchars_decode($get_meta["tie_banner_above"][0]) ).'</div>';
    			else tie_banner('banner_above' , '<div class="e3lan e3lan-post">' , '</div>' );
    		}
    		?>
    
    		<article <?php post_class('post-listing post'); ?>  id="the-post">
    
    			<?php if( empty( $get_meta["tie_post_head_cover"][0] ) ) get_template_part( 'framework/parts/post-head' ); ?>
    
    			<div class="post-inner">
    
    			<?php if(  empty( $get_meta["tie_post_head_cover"][0] ) ||
    					( !empty( $get_meta["tie_post_head_cover"][0] ) && ( !empty( $get_meta['tie_post_head'][0] ) && $get_meta['tie_post_head'][0] != 'thumb' ) && $get_meta['tie_post_head'][0] != 'lightbox' ) ) : ?>
    				<h1 class="name post-title entry-title" itemprop="itemReviewed" itemscope itemtype="https://schema.org/Thing"><span itemprop="name"><?php the_title(); ?></span></h1>
    				<p class="post-meta"></p>
    				<div class="clear"></div>
    			<?php endif; ?>
    
    				<div class="entry">
    					<?php if( tie_get_option( 'share_buttons_pages' ) && tie_get_option( 'share_post_top' ) && ( !function_exists( 'is_buddypress' ) || ( function_exists( 'is_buddypress' ) && !is_buddypress() ) ) ) get_template_part( 'framework/parts/share'  ); // Get Share Button template ?>
    
    					<?php the_content(); ?>
    					<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __ti( 'Pages:' ), 'after' => '</div>' ) ); ?>
    
    					<?php edit_post_link( __ti( 'Edit' ), '<span class="edit-link">', '</span>' ); ?>
    				</div><!-- .entry /-->
    				<span style="display:none" class="updated"><?php the_time( 'Y-m-d' ); ?></span>
    				<?php if ( get_the_author_meta( 'google' ) ){ ?>
    				<div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="https://schema.org/Person"><strong class="fn" itemprop="name"><a href="<?php the_author_meta( 'google' ); ?>?rel=author">+<?php echo get_the_author(); ?></a></strong></div>
    				<?php }else{ ?>
    				<div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="https://schema.org/Person"><strong class="fn" itemprop="name"><?php the_author_posts_link(); ?></strong></div>
    				<?php } ?>
    
    				<?php if( tie_get_option( 'share_buttons_pages' ) && tie_get_option( 'share_post' ) && ( !function_exists( 'is_buddypress' ) || ( function_exists( 'is_buddypress' ) && !is_buddypress() ) ) ) get_template_part( 'framework/parts/share' ); // Get Share Button template ?>
    				<div class="clear"></div>
    			</div><!-- .post-inner -->
    		</article><!-- .post-listing -->
    		<?php endwhile; ?>
    
    		<?php //Below Post Banner
    		if( empty( $get_meta["tie_hide_below"][0] ) ){
    			if( !empty( $get_meta["tie_banner_below"][0] ) ) echo '<div class="e3lan e3lan-post">' .do_shortcode( htmlspecialchars_decode($get_meta["tie_banner_below"][0]) ).'</div>';
    			else tie_banner('banner_below' , '<div class="e3lan e3lan-post">' , '</div>' );
    		}
    		?>
    
    		<?php if( !function_exists('bp_current_component') || (function_exists('bp_current_component') && !bp_current_component() ) )  comments_template( '', true );  ?>
    	</div><!-- .content -->
    
    <?php endif; ?>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I created directory in childtheme called sportpress and placed this code from page.php to this folder and called single-player.php . I also placed the same in theme folder, nothing changed… :/
    Currently my player details looks like this https://www.siatkarsko.pl/zawodnik/tomasz-kowalski/

    https://www.ads-software.com/plugins/sportspress/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mckolt

    (@mckolt)

    I also tried paste @luckycharm1978’s code from this topic https://www.ads-software.com/support/topic/customize-players-details-page?replies=12
    but with no ressults. What I’m doing wrong ?

    Thread Starter mckolt

    (@mckolt)

    Ok I figured out by myselve how to correct display of details of player. I don’t know why in documentation of sportpress there is missed this very important thing. Without styling it looks terrible

    If someone want to use, in my case I added code to my style.css of my childtheme

    .sp-template-details dl {
    	background: #f4f4f4;
    	border: 1px solid #e0e0e0;
    	margin-bottom: 20px;
    }
    
    .sp-player-details dl
    {
    
      width: 100%;
      overflow: hidden;
      background: #ff0;
    }
    
    .sp-player-details dd
    {
      border: solid white 1px;
      float: left;
      width: 50%;
      /* adjust the width; make sure the total of both is 100% */
      background: #fef9f5;
    
    }
    .sp-player-details dt
    {
      border: solid white 1px;
      float: left;
      width: 50%;
      /* adjust the width; make sure the total of both is 100% */
      background: #f9f4f0;
    }
    .sp-player-details a
    {
     color: #ff4f19;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Single player page style issue’ is closed to new replies.