Ads and Thumbnail issues

This topic is: Not resolved

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

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

  • Author
    Posts
  • #9431

    Benjamin
    Member
    Post count: 15

    Hi and firt of all thanks for this amazing theme !

    I have just changed my old website template and I have these issues :

    1. One of my thumbnail is not at the righ dimensions, even after regenerate it. See the screen shot attached.
    2. I have put some code on the Ad settings but they are not displayed.

    Thanks by advance.

    Ben

  • #9432

    Benjamin
    Member
    Post count: 15

    With the file

  • #9435

    Jacob
    Staff
    Post count: 2312

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

    Login | Register | Forgot Password?

  • #9462

    Benjamin
    Member
    Post count: 15

    My website is http://www.blog-audition.fr,

    and I have only modified my content.php

    Thanks.

  • #9472

    Benjamin
    Member
    Post count: 15

    For the ads, I finally see them with Firefox but not chrome.

    And the first bloc on each blog post overlaps a portion of the text.
    (see the attachment).

    To finish, all my settings concerning the background color (header and footer) are not taken into account.

    Thanks for our help

  • #9485

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #9490

    Benjamin
    Member
    Post count: 15

    Hi,

    Thanks for the css, it works. But is it possible to resize automatically the thumbnails, I want them to have all the same size.

    For the ad, they are at a different position but still overlaping the content and the sidebar on the right.

    Have you something about my styling problem ?

    Thanks,
    Ben.

  • #9515

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #9541

    Benjamin
    Member
    Post count: 15

    I have replaced the code as mentionned in content.php (in the child theme), but now I don’t have thumbnail anymore !

    And so for the ad what could I do concretely ?

    Thank you

  • #9580

    Jacob
    Staff
    Post count: 2312

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

    Login | Register | Forgot Password?

  • #9584

    Benjamin
    Member
    Post count: 15

    Here is my code :

    
    <?php
    /**
     * @package yeahthemes
     */
     
    	$format = get_post_format();
    	
    	if( false === $format )
    		$format = 'standard';
    	
    	$formats_meta = yt_get_post_formats_meta( get_the_ID());
    	
    	$excerpt = get_the_excerpt();
    	$excerpt = wp_trim_words( $excerpt, 15, '...');
    	$output_excerpt = sprintf('<p style="margin:0;">%s</p>', $excerpt );
    
    		
    	$readmore_content = 'show' == yt_get_options( 'blog_readmore_button' ) ? '<p><a class="more-tag btn btn-default btn-lg margin-top-15" href="'. get_permalink( get_the_ID() ) . ( 'manual' == yt_get_options( 'excerpt_output' ) ? "#more-" . get_the_ID() : '' ) . '"> ' . __('Read More...','yeahthemes') . '</a></p>' : '';
    
    	/*Rating*/
    	$rating_content = '';
    	if( 'show' === yt_get_options( 'blog_post_review_info' ) && function_exists( 'wp_review_show_total') ){
    		$rating = wp_review_show_total(false, 'review-total-only review-mark inline-block');
    		if( $rating )
    			$rating_content = '<div class="inline-block">' . sprintf(__('Rating: %s', 'yeahthemes'), $rating ) . '</div>';
    	}
    
    	if(class_exists( 'YT_Post_Helpers') )
    		YT_Post_Helpers::$listed_post[] = get_the_ID();
    ?> 
    
    <article id="post-<?php echo esc_attr( get_the_ID() ); ?>" <?php post_class('custom-hentry'); ?>>
    	<?php do_action( 'yt_before_archive_post_entry_header' );?>
    
    	<header class="entry-header article-header">
    
    		<?php do_action( 'yt_archive_post_entry_header_start' );?>
    		
    		<?php if ( has_post_thumbnail('medium') && get_the_post_thumbnail('medium') && ! post_password_required() ) : ?>
    		<a href="<?php echo esc_attr( get_permalink() ); ?>" rel="bookmark" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_post_thumbnail( 'post-thumbnail'); ?></a>
    		<?php endif; ?>
    		
    
    		<?php do_action( 'yt_archive_post_entry_header_end' );?>
    
    	</header><!-- .entry-header -->
    
    	<?php do_action( 'yt_before_archive_post_entry_content' );?>
    	
    	<?php if ( is_search() ) : // Only display Excerpts for Search ?>
    	<div class="entry-summary margin-bottom">
    		<?php the_excerpt(); ?>
    	</div><!-- .entry-summary -->
    	<?php else : ?>
    	<div class="entry-content article-content">		
    
    		<?php do_action( 'yt_archive_post_entry_content_start' );?>
    		
    
    		<h2 class="entry-title secondary-2-primary"><a href="<?php echo esc_attr( get_permalink() ); ?>" rel="bookmark" title="<?php echo esc_attr( strip_tags( get_the_title() ) ); ?>"><?php the_title(); ?></a></h2>
    		
    
    		<?php 
    		echo $output_excerpt;
    
    		 if( !is_search() && 'hide' !== yt_get_options( 'blog_post_meta_info_mode' )): ?>
    		<div class="entry-meta hidden-print hidden">
    			<span class="byline">
    
    				<span class="author vcard">
    					By <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>	
    			<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>		
    		</div><!-- .entry-meta -->
    		<?php endif;
    
    		echo $rating_content;
    		// echo $readmore_content;
    		
    		?>
    
    		
    		<?php do_action( 'yt_archive_post_entry_content_end' );?>
    
    	</div><!-- .entry-content -->
    	<?php endif; ?>
    
    	<?php if ( current_user_can('edit_post', get_the_ID()) ) {?>
    	<footer class="entry-meta">
    		<?php edit_post_link( __( '—Edit', 'yeahthemes' ), '<span class="edit-link">', '</span>' ); ?>
    	</footer><!-- .entry-meta -->
    	<?php }?>
    	
    </article><!-- #post-<?php the_ID(); ?>## -->
    
  • #9628

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #9709

    Benjamin
    Member
    Post count: 15

    Ok thanks.
    they now have the same width. Possible to have the same height also (same thing on the mega menu) ?
    Cheers

  • #9761

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #9789

    Benjamin
    Member
    Post count: 15

    It’s not working 🙁

  • #9878

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #9882

    Benjamin
    Member
    Post count: 15

    Here is my custom fonctions code :`

    add_action( 'yt_after_loop_singular_post', 'add_my_sharing_buttons_to_end_of_post_08112014' );
    function add_my_sharing_buttons_to_end_of_post_08112014(){
    
    	$styles = apply_filters( 'yt_site_social_sharing_services_styles', array(
    		'style' => 'color',
    		'size'	=> 'large'
    	), 'style2' );
    
    	yt_site_social_sharing_buttons( $styles, array(), $class = 'sparkle-sharrre-buttons');
    }
    add_filter( 'yt_site_dynamically_external_stylesheet', '__return_false' );
  • #9894

    Jacob
    Staff
    Post count: 2312

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

    Login | Register | Forgot Password?

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!