• Resolved fedeisalovati

    (@fedeisalovati)


    Hi!
    I’ve noticed that my social sharing icons at the end of the post are wrong alligned. They’re supposed to be on a horizontal line, but instead they’re on a vertical line. How can I do to fix this?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter fedeisalovati

    (@fedeisalovati)

    Now it works! Thank you!
    One last thing, is it possible to have related post feature image horizontal instead of vertical, without changing the feature image of posts in the home page?

    Fotis

    (@markwaregr)

    Hi there,
    you could open part-related.php and replace
    <?php get_template_part( 'content', 'entry-widget' ); ?>
    with

    <?php
    	if ( is_tag() || is_category() ) {
    		$layout = olsen_light_get_layout_classes( 'layout_terms' );
    	} else {
    		$layout = olsen_light_get_layout_classes( 'layout_blog' );
    	}
    	$post_class  = $layout['post_class'];
    	$post_col    = $layout['post_col'];
    	$blog_layout = $layout['layout'];
    	$is_classic  = false;
    
    	global $wp_query;
    	if( in_array( $layout['layout'], array( '2cols_side' ) ) && is_main_query() && $wp_query->current_post == 0 ) {
    		$post_class = '';
    		$post_col   = $layout['layout'] === '2cols_side' ? 'col-xs-12' : '';
    		$is_classic = true;
    	}
    
    	if ( in_array( $blog_layout, array( 'classic_1side' ) ) ) {
    		$is_classic = true;
    	}
    
    ?>
    
    <?php if ( ! empty( $post_col ) ) : ?>
    	<div class="<?php echo esc_attr( $post_col ); ?>">
    <?php endif; ?>
    
    		<article id="entry-<?php the_ID(); ?>" <?php post_class( 'entry ' . $post_class ); ?> itemscope="itemscope" itemtype="https://schema.org/BlogPosting" itemprop="blogPost">
    			<?php if ( get_post_type() === 'post' ) : ?>
    				<div class="entry-meta entry-meta-top">
    					<p class="entry-categories">
    						<?php the_category( ', ' ); ?>
    					</p>
    				</div>
    			<?php endif; ?>
    
    			<h2 class="entry-title" itemprop="headline">
    				<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    			</h2>
    
    			<?php if ( get_post_type() === 'post' ) : ?>
    				<div class="entry-meta entry-meta-bottom">
    					<time class="entry-date" itemprop="datePublished" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time>
    					<a href="<?php echo esc_url( get_comments_link() ); ?>" class="entry-comments-no"><?php comments_number(); ?></a>
    				</div>
    			<?php endif; ?>
    
    			<?php if ( has_post_thumbnail() ) : ?>
    				<div class="entry-featured">
    					<a href="<?php the_permalink(); ?>">
    						<?php the_post_thumbnail( 'ci_slider', array( 'itemprop' => 'image' ) ); ?>
    					</a>
    				</div>
    			<?php endif; ?>
    
    			<div class="entry-content" itemprop="text">
    				<?php if ( ! get_theme_mod( 'excerpt_on_classic_layout' ) ) {
    					the_content( '' );
    				} else {
    					the_excerpt();
    				} ?>
    			</div>
    
    			<div class="entry-utils group">
    				<a href="<?php the_permalink(); ?>" class="read-more"><?php esc_html_e( 'Continue Reading', 'olsen-light' ); ?></a>
    
    				<?php get_template_part( 'part', 'social-sharing' ); ?>
    			</div>
    		</article>
    
    <?php if ( ! empty( $post_col ) ) : ?>
    	</div>
    <?php endif; ?>
    

    Let me know if you need additional help on this.

    Thread Starter fedeisalovati

    (@fedeisalovati)

    Hi!
    I did your solution and it works perfectly!
    Thank you very much for your help and above all for your patience with all of my questions! ??

    Fotis

    (@markwaregr)

    Glad I could help!

    Thread Starter fedeisalovati

    (@fedeisalovati)

    I’m sorry. I’ve noticed now that my sidebar is visible only in the first page of the blog and when I click next post button it isn’t visible in page 2, 3, etc… How can I solve this issue?

    Thank you again!

    Fotis

    (@markwaregr)

    Hi there,
    can you disable temporary all your plugins and let me know if the issue persists?

    It would be better to open a new thread and continue there, since this is already resolved.

    Thread Starter fedeisalovati

    (@fedeisalovati)

    Hi!
    I have disabled all the plugins and I could see the sidebar. Then I have activated them all again and now I can see the sidebar even in pages 2,3,.. and so on.
    Thank you again for the help!

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Social sharing icons’ is closed to new replies.