Version 2 Issues

This topic is: Resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

This topic contains 15 replies, has 3 voices, and was last updated by  Thakksy 1 year, 6 months ago.

  • Author
    Posts
  • #11986

    Thakksy
    Member
    Post count: 327

    ok so here are issues with version 2:

    – Sparkles share buttons are not displaying and meta info is all messed up
    – On home page the post lists are automatically expanding to show more posts

  • #11987

    Thakksy
    Member
    Post count: 327

    UPDATE:

    – Solved posts list, just needed to use the new options in VC

    – Share buttons do work on pages but not on posts.

    – The new hero banner option are really good 🙂

    – The new posts list options are so much better 🙂

    – It’s a really good update

  • #11988

    Thakksy
    Member
    Post count: 327

    UPDATE

    Latest posts don’t work in VC Posts list Horizontal view

  • #11999

    Thakksy
    Member
    Post count: 327

    So here are the issues which need a fixes:

    Displaying latest posts in Post Lists widget in sidebar and VC do not work. Only displays older posts even though latest posts option is selected.

    Share buttons on posts don’t work

    Meta info on posts are not displaying correctly

  • #12032

    Jacob
    Staff
    Post count: 2420

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #12043

    Thakksy
    Member
    Post count: 327

    I deleted content-single from the child theme folder and share buttons are now working fine but the smaller share buttons i added some time ago at the bottom of each post are now gone, maybe the code needs updating. below is the original content-single.php that was provided:

    <?php
    /**
     * @package yeahthemes
     */
    	$format = get_post_format();
    	
    	if( false === $format )
    		$format = 'standard';
    	
    	$formats_meta = yt_get_post_formats_meta( get_the_ID());
    	
    	/**
    	 *Quote format
    	 */
    	$quote_author = !empty( $formats_meta['_format_quote_source_name'] )  ? '<cite class="entry-format-meta margin-bottom-30">' . $formats_meta['_format_quote_source_name'] . '</cite>' : '';
    	$quote_author = !empty( $formats_meta['_format_quote_source_url'] ) ? sprintf( '<cite class="entry-format-meta margin-bottom-30"><a href="%s">%s</a></cite>', $formats_meta['_format_quote_source_url'], $formats_meta['_format_quote_source_name'] ) : $quote_author;
    	
    	/**
    	 *Link format
    	 */
    	$share_url = !empty( $formats_meta['_format_link_url'] ) ? $formats_meta['_format_link_url'] : get_permalink( get_the_ID() );
    	
    	//print_r($formats_meta);
    	$share_url_text = !empty( $formats_meta['_format_link_url'] )  
    		? sprintf( '<p class="entry-format-meta margin-bottom-30">%s <a href="%s">#</a></p>',
    			$formats_meta['_format_link_url'],
    			get_permalink( get_the_ID() ) )
    		: '';
    	
    	/**
    	 *Extra class for entry title
    	 */
    	$entry_title_class = ' margin-bottom-30';
    	if( 'quote' === $format  && $quote_author 
    		|| 'link' === $format  && $share_url_text 
    	){
    		$entry_title_class = '';
    	}
    	
    	
    	$entry_title = get_the_title( get_the_ID() );
    	if( 'link' === $format  && $share_url_text  ){
    		$entry_title = sprintf('<a href="%s" title="%s" target="_blank" rel="external" class="secondary-2-primary">%s</a>', $share_url, get_the_title( get_the_ID() ), get_the_title( get_the_ID() ) );
    	}
    
    	$feature_image = yt_get_options('blog_single_post_featured_image');
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    	<?php do_action( 'yt_before_single_post_entry_header' );?>
    
    	<header class="entry-header">
    
    		<?php do_action( 'yt_single_post_entry_header_start' );?>
    
    		<h1 class="entry-title <?php echo $entry_title_class; ?>"><?php echo $entry_title; ?></h1>
    		
    		<?php echo 'quote' === $format ? $quote_author : '';?>
    		<?php echo 'link' === $format ? $share_url_text : '';?>
    
    		<?php if( 'hide' !== yt_get_options( 'blog_post_meta_info_mode' )): ?>
    		<div class="entry-meta margin-bottom-30 hidden-print" style="display:none">
    			<span class="posted-on">
    				
    				<?php
    					$time_string = '<time class="entry-date published ' . ( get_the_time( 'U' ) == get_the_modified_time( 'U' ) ? 'updated' : '' ) . 'pull-left" datetime="%1$s">%2$s</time>';
    					if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) )
    						$time_string .= '<time class="updated hidden" datetime="%3$s">%4$s</time>';
    				
    					$time_string = sprintf( $time_string,
    						esc_attr( get_the_date( 'c' ) ),
    						esc_html( get_the_date() ),
    						esc_attr( get_the_modified_date( 'c' ) ),
    						esc_html( get_the_modified_date() )
    					);
    					echo $time_string;
    				?>
    			</span>
    			<span class="byline">
    
    				<span class="author vcard">
    					<a class="url fn n" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
    						<?php echo esc_html( get_the_author() ); ?>
    					</a>
    				</span>
    			</span>			
    		</div><!-- .entry-meta -->
    		<?php endif?>
    
    		<?php do_action( 'yt_single_post_entry_header_end' );?>
    	</header><!-- .entry-header -->
    
    	<?php do_action( 'yt_before_single_post_entry_content' );?>
    
    	<div class="entry-content">
    
    		<?php do_action( 'yt_single_post_entry_content_start' );?>
    		<?php
    		/*Standard*/
    		if( in_array( $format, array( 'standard', 'quote', 'link' ) ) ){
    			
    			if ( 'show' == $feature_image && has_post_thumbnail() && ! post_password_required() ) : ?>
    			<p class="entry-thumbnail margin-bottom-30">
    				<?php the_post_thumbnail( 'post-thumbnail'); ?>
    				<?php
    				if( ($thumb_excerpt = yt_get_thumbnail_meta( get_post_thumbnail_id( get_the_ID() ), 'post_excerpt' )) ){
    					echo '<span class="entry-caption thumbnail-caption">' . $thumb_excerpt . '</span>';
    				}
    				//echo yt_get_post_thumbnail_meta( get_the_ID(), 'post_excerpt' ) ? yt_get_post_thumbnail_meta(null) : '';
    
    				//print_r( yt_get_post_thumbnail_meta());
    				?>
    			</p>
    			<?php endif;
    			
    		
    		}
    		elseif( 'image' === $format ){
    			if ( ! post_password_required() && yt_get_the_post_format_image() ) : ?>
    			<p class="entry-media margin-bottom-30">
    			<?php echo yt_get_the_post_format_image(); ?>
    			</p>
    			<?php endif;
    		}
    		/*Audio*/
    		elseif( 'audio' === $format ){
    			if ( has_post_thumbnail() && ! post_password_required() ) : ?>
    			<p class="entry-thumbnail<?php echo !yt_get_the_post_format_audio() ? ' margin-bottom-30' : ''; ?>">
    				<?php the_post_thumbnail( 'post-thumbnail'); ?>
    			</p>
    			<?php endif;
    			if ( yt_get_the_post_format_audio() && !post_password_required() ) : ?>
    			<p class="entry-format-media <?php echo has_post_thumbnail() && get_the_post_thumbnail() && ! post_password_required() ? 'with-cover ' : ''; ?>margin-bottom-30">
    				<?php echo yt_get_the_post_format_audio(); ?>
    			</p>
    			<?php endif;
    			
    		/*Gallery*/	
    		}elseif( 'gallery' === $format ){
    			if ( yt_get_the_post_format_gallery() && !post_password_required() ) : ?>
    			<p class="entry-format-media margin-bottom-30">
    				<?php echo yt_get_the_post_format_gallery(); ?>
    			</p>
    			<?php endif;
    			
    		/*Video*/
    		}elseif( 'video' === $format ){
    			if ( yt_get_the_post_format_video() && !post_password_required() ) : ?>
    			<p class="entry-format-media margin-bottom-30">
    				<?php echo yt_get_the_post_format_video(); ?>
    			</p>
    			<?php endif;
    		}
    		?>
    		
    		<?php the_content(); ?>
    		<?php
    			wp_link_pages( array(
    				'before' => '<div class="page-links pagination-nav">' . __( 'Pages:', 'yeahthemes' ),
    				'after'  => '</div>',
    				'link_before' => '<span class="page-numbers">',
    				'link_after' => '</span>',
    			) );
    		?>
    
    		<?php do_action( 'yt_single_post_entry_content_end' );?>
    
    	</div><!-- .entry-content -->
    <?php
    if( function_exists('yt_site_social_sharing_buttons') && !is_search() ){
    		
    
    		$styles = apply_filters( 'yt_site_social_sharing_services_styles', array(
    			'style' => 'color',
    			'size'	=> 'small'
    		), 'style1' );
    
    		$services = array(
    			'twitter' => array(
    				'title' => __('Twitter', 'yeahthemes'),
    			),
    			'facebook' => array(
    				'title' => __('Facebook', 'yeahthemes'),
    			),
    			'google-plus' => array(
    				'title' => __('Share on Google+', 'yeahthemes'),
    			),
    			'linkedin' => array(
    				'title' => __('Share on Linkedin', 'yeahthemes'),
    			),
    			'pinterest' => array(
    				'title' => __('Pin this Post', 'yeahthemes'),
    			),
    			'tumblr' => array(
    				'title' => __('Share on Tumblr', 'yeahthemes'),
    			),
    			'more' => array(
    				'title' => __('More services', 'yeahthemes'),
    			),
    		);
    
    		yt_site_social_sharing_buttons( $styles, $services, $class = 'pull-right');
    	}
    ?>
    	<?php do_action( 'yt_before_single_post_entry_footer' );?>
    
    	<?php
    	
    	$tag_list = get_the_tag_list( '', '' );
    	if ( $tag_list ) :
    	
    	?>
    
    	<footer class="entry-meta hidden-print">
    		<?php do_action( 'yt_single_post_entry_footer_start' );?>
    
    		<?php
    			$meta_text = '';
    			/* translators: used between list items, there is a space after the comma */
    			
    
    			if ( '' != $tag_list ) {
    				$meta_text = '<div class="entry-tags">';
    				$meta_text .= __( '<strong class="tag-heading">%1$s Tags:</strong> %2$s', 'yeahthemes' );
    				$meta_text .= '</div>';
    			} 
    
    			printf(
    				$meta_text,
    				apply_filters('yt_icon_tag', '<i class="fa fa-tag"></i>'),
    				$tag_list
    			);
    		?>
    		<?php do_action( 'yt_single_post_entry_footer_end' );?>
    	</footer><!-- .entry-meta -->
    	<?php endif;?>
    
    	<?php do_action( 'yt_after_single_post_entry_footer' );?>
    	<!-- noptimize --><script type="text/html" data-role="header .entry-meta"><?php if( function_exists( 'yt_post_meta_description' )) yt_post_meta_description(); ?></script><!-- /noptimize -->
    	
    </article><!-- #post-<?php the_ID(); ?>## -->

    About the latest posts not coming up, i mean by date. So when I choose to display posts by date within the “cruise news” category it won’t work. i have to select every single category within the “cruise news” category. before i could just choose the parent category and all the pposts will be displayed by date.

  • #12047

    Thakksy
    Member
    Post count: 327

    Could you also please help fix the category pages, sidebar and category tags at top have disappeared.

  • #12058

    Jacob
    Staff
    Post count: 2420

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #12059

    Jacob
    Staff
    Post count: 2420

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #12061

    Thakksy
    Member
    Post count: 327
    This reply has been marked as private.
  • #12062

    Thakksy
    Member
    Post count: 327

    I fixed the category pages. I have deleted all the custom pages in my child theme apart from custom-functions.php. But now I will have to add the customizations again to the updated files of version 2.

  • #12087

    Thakksy
    Member
    Post count: 327

    How to put the category pages back to this: https://goo.gl/photos/ax6opxg4RrKnFZJVA like on Ericks site.

    Dont think the previous way works anymore.

    • This reply was modified 1 year, 6 months ago by  Thakksy.
    • This reply was modified 1 year, 6 months ago by  Thakksy.
  • #12091

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #12094

    Thakksy
    Member
    Post count: 327

    That’s good news, didn’t get any email with that option. Don’t see that option in current theme settings unless it’s somewhere else.

  • #12126

    Jacob
    Staff
    Post count: 2420

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #12129

    Thakksy
    Member
    Post count: 327

    Got it cheers. think i was just too excited and couldn’t wait! Already updated.

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!