• Resolved luxbob

    (@luxbob)


    Hello,

    on my site, I changed the Theme to SpectrumStarter.
    I like it but have some questions (which I couldn’t solve with Google):

    – for the posts shown on the main side, only “excerpts” are shown.
    I succeed to change the maximal length of this part but I would like to show full posts (including pictures). Is this possible by settings or changing some line in the theme layout?
    In the general settings, the option “full text” is checked.

    – the header of the posts has currently the following design:
    22. April 2017 0 Comments Written byBobGrun
    Since I switched off the comments and write most of the entries by my own, I would be happy if only the date would be shown.
    Can anyone tell me how/where to change this?

    Thanks in advance,
    Bob

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Archimidis Mertzanos

    (@archimidism)

    Dear @luxbob.
    Thanks for sharing your issues.

    You have to change the code a bit if you want to have the full length of the post to be shown in the index pages + archive pages. Use a ftp program to view the theme’s files.
    Find the folder “template-parts” and inside this folder open the following files into your preffered editor.

    • content-archive.php
    • content-author.php
    • content-category.php
    • content-index.php
    • content-search.php
    • content-tag.php

    Find the line: 51 (well approximately) and you will see the following code:

    <?php the_excerpt(); ?>

    Turn this code to

    <?php the_content();?>

    Also to each and every file find and remove the following code chunk:

    <div class="post-read-more clearfix">
    <a class="read-more-btn" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
    <?php echo esc_html(__( 'Read More', 'spectrumstarter' )); ?>
    </a>
    </div>

    For the second issue:

    To each and every file you have opened before, and also the content-single.php
    find the following code chunk approx line 27:

    <div class="post-meta">
        <time class="post-date">
           <?php echo date_i18n(get_option( 'date_format' ) ); ?>
     </time><!-- .post-date ends here-->
    
    	<span class="post-comments">
               <?php printf( _nx( '%1$s Comment', '%1$s Comments', get_comments_number(), 'comments title', 'spectrumstarter' ), number_format_i18n( get_comments_number() ) ); ?>
            </span><!-- .post-comments end here -->
    
    	<span class="post-author">
               <?php echo esc_html(__( 'Written by ', 'spectrumstarter' )); ?><?php the_author_posts_link(); ?>
            </span><!-- .post-author ends here -->
    
    	<div class="post-categories uk-float-right">
    		<?php echo get_the_category_list( ',', '', get_the_ID() ); ?>
    	<a href="#" title="<?php echo esc_attr_e( 'View posts from this category', 'spectrumstarter' ); ?>" class="post-category">
    	</a>
       </div><!-- .post-categories ends here -->
    
    </div>

    Turn that chunk to the following:

    <div class="post-meta">
    <time class="post-date">
     <?php echo date_i18n(get_option( 'date_format' ) ); ?>
    </time><!-- .post-date ends here-->
    </div>

    I hope I have solved your issues.

    Thread Starter luxbob

    (@luxbob)

    Thanks so much for this solution. It perfectly worked.
    Thanks!!!

    Theme Author Archimidis Mertzanos

    (@archimidism)

    You are welcome!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Full Posts (no excerpts) & Post Header’ is closed to new replies.