• Resolved billjimenez

    (@billjimenez)


    First of all, I would like to congratulate you for this theme, that I’m using in a friend’s site, and I need some help because I’m trying to modify the single.php archive to look like a page, with the big header and the navigation in the left.

    Do you think that I can do it editing the css file only? Or maybe I have to do major changes to the single.php file? I appreciate any suggestions.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author robertostrabelli

    (@robertostrabelli)

    Hello

    Sorry for the delay in responding.
    It is not perfect but works,
    Replace the entire content of single.php for this:

    <?php get_header(); ?>
    
    <div class="conteudoindex">
    
    <article class="conteudo2">
    
    <?php if( have_posts() ): ?>
                <?php the_post();?>
    
    <?php get_template_part( 'content', get_post_format() ); ?>
    
    <?php else: ?>
    <h2><?php _e( '404 - Nothing Found', 'coffeetime' ); ?></h2>
    <p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'coffeetime' ); ?></p>
    <?php get_search_form(); ?>
    <?php endif; ?>
    </article>
    
    <p style="text-align:right"><small><?php the_author_posts_link(); ?></small><br/>
    
    <span><?php
    echo str_replace("<img ", "<img title='' ", get_avatar( get_the_author_meta('user_email'), $size = '48', '', ''));
    ?></span></p>
    
    <div class="previusnext">
    <?php previous_post_link('<span class="pn">%link</span>'); ?> <?php next_post_link('<span class="pn">%link</span>'); ?>
    </div>
    
    <?php comments_template(); ?>
    
    </div>
    
    <?php get_footer(); ?>
    Thread Starter billjimenez

    (@billjimenez)

    Thanks for the code!
    I’ll do some tests, but I think that it could be the solution.

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Single post like pages’ is closed to new replies.