Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Oxize2

    (@oxize2)

    Okay i am closer now. I installed “<?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>” into single-blog.php. But now it appears above the author/date box. How can make it like the demo site of Elegant Preview theme?

    <div id="left-div2">
    <?php if (get_option('ephoto_integration_single_top') <> '' && get_option('ephoto_integrate_singletop_enable') == 'on') echo(get_option('ephoto_integration_single_top')); ?>
    
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
        <!--Begin Post-->
    
        <div class="post-wrapper">
            <h1 class="post-title" style="margin-top: 0px;"><?php the_title(); ?></h1>
    
    		<?php if(get_option('ephoto_postinfo2') ) { ?>
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    			<div class="post-info" style="margin-bottom: 15px;">
    				<?php esc_html_e('Posted','ePhoto') ?> <?php if (in_array('author', get_option('ephoto_postinfo2'))) { ?> <?php esc_html_e('by','ePhoto') ?> <?php the_author_posts_link(); ?><?php }; ?><?php if (in_array('date', get_option('ephoto_postinfo2'))) { ?> <?php esc_html_e('on','ePhoto') ?> <?php the_time(get_option('ephoto_date_format')) ?><?php }; ?><?php if (in_array('categories', get_option('ephoto_postinfo2'))) { ?> <?php esc_html_e('in','ePhoto') ?> <?php the_category(', ') ?><?php }; ?><?php if (in_array('comments', get_option('ephoto_postinfo2'))) { ?> | <?php comments_popup_link(esc_html__('0 comments','ePhoto'), esc_html__('1 comment','ePhoto'), '% '.esc_html__('comments','ePhoto')); ?><?php }; ?>
    			</div>
    		<?php }; ?>
    
            <div style="clear: both;"></div>
    
    		<?php if (get_option('ephoto_thumbnails_blogpost') == 'on') { ?>
    
    			<?php $width = (int) get_option('ephoto_thumbnail_width_blogpost');
    				  $height = (int) get_option('ephoto_thumbnail_height_blogpost');
    				  $classtext = 'blogthumbnail';
    				  $titletext = get_the_title();
    
    				  $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
    				  $thumb = $thumbnail["thumb"]; ?>
    
    			<?php if($thumb <> '') { ?>
    				<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
    			<?php } ?>
    
    		<?php } ?>
    
            <?php the_content(); ?>
    		<?php if (get_option('ephoto_integration_single_bottom') <> '' && get_option('ephoto_integrate_singlebottom_enable') == 'on') echo(get_option('ephoto_integration_single_bottom')); ?>
    		<br style="clear: both;"/>
    		<?php if (get_option('ephoto_show_postcomments_blogpost') == 'on') { ?>
    			<div class="comments-wrapper">
    				<?php comments_template('',true); ?>
    			</div>
    			<img src="<?php echo get_template_directory_uri(); ?>/images/comments-bottom-<?php echo esc_attr(get_option('ephoto_color_scheme')); ?>.gif" alt="comments-bottom" style="float: left;" />
    		<?php }; ?>
            <?php endwhile; ?>
        </div>
        <?php else : ?>
    		<?php get_template_part('includes/no-results'); ?>
        <?php endif; ?>
    </div>
    
    <?php get_sidebar(); ?>
    
    </div>
    
    	<div id="bottom">
            <?php get_template_part('includes/footer-area'); ?>
        </div>
    
    <?php get_footer(); ?>
    
    </body>
    </html>

    https://www.oxize.nl/portrait/using-100mm-on-portrait/

    Thread Starter Oxize2

    (@oxize2)

    I added some custom css to it.
    .post-ratings {position: relative;left: 227px;top: 27px;}

    Now its in the good position. I only need a box around it with some gradient black color like those other guys have from Elegantthemes (ePhoto theme).

    Thread Starter Oxize2

    (@oxize2)

    Fixed it. ??

    Thread Starter Oxize2

    (@oxize2)

    resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Ratingsbox next to postdate/author.’ is closed to new replies.