• Resolved vrrebels

    (@vrrebels)


    Hello,

    I have this 3 objects : the post image, share buttons, author name and data.

    I want to to display the post in this way :

    – post image
    – post author and data
    – share button

    here is an exemple post that need to be displayed in my way : here

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi vrrebels. Couple of questions:
    1. Where does the post title fit into the list?
    2. How are you currently adding the Shareaholic social links?

    Thread Starter vrrebels

    (@vrrebels)

    The post title should be before the post Image, so this wold be the order :

    – post title
    – post image
    – post author and data
    – share button

    To answer second question, it s a plug-in, there is an option to add the share buttons to the top of the post but probably they give some code to move buttons where I want.

    I found in single.php where is post author and data line but moving that line makes author and data go always before image post or at the end of the post.

    I don’t know in which file is got/located the post Image and generally how to solve the problem.

    Thank you for your time.

    It appears that your post is using both a featured image and an image embedded in the post content. Probably the easiest option is to remove the image from the content, then change the post format from Standard to Image so it will display the featured image. Then you just need to move the author by-line below the image:

    1. Copy single.php to your child theme.

    2. Find this near the top of the code:

    <div class="post-inner group">
    
    	<h1 class="post-title"><?php the_title(); ?></h1>
    	<p class="post-byline"><?php _e('by','hueman'); ?> <?php the_author_posts_link(); ?> &middot; <?php the_time(get_option('date_format')); ?></p>
    
    	<?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?>
    
    	<div class="clear"></div>

    3. Move the “post-byline” line so it’s below the get_post_format() line:

    <div class="post-inner group">
    
    	<h1 class="post-title"><?php the_title(); ?></h1>
    	<?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?>
    
    	<p class="post-byline"><?php _e('by','hueman'); ?> <?php the_author_posts_link(); ?> &middot; <?php the_time(get_option('date_format')); ?></p>
    
    	<div class="clear"></div>

    4. In your Shareaholic plugin set the Share Buttons location for Post to Above Content.

    Thread Starter vrrebels

    (@vrrebels)

    I wasn’t the author of the posts and I tought that the default behavior for the theme was to put an image at the beginning of every post.

    Thank you very much! Great Support!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Move post image to the top’ is closed to new replies.