• hello
    im currently using F8 static theme
    https://demo.graphpaperpress.com/f8-static/
    is there anyway that i can enable the text from post on front page?
    i only want to display thumbnails but no text
    keep text in post only

    im noob to css
    so dont really know where to change
    justcopy some codes here hopefully someone can help me,
    thanks heaps!

    Main Index Template (index.php)
    ——————————————-

    <?php get_header(); ?>

    <?php $i = 0; ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); $i++; ?>
    <div class=”span-8 post-<?php the_ID(); ?><?php if ($i == 3) { ?> last<?php } ?>”>
    <h6 class=”archive-header”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title() ?></h6>
    <?php get_the_image( array( ‘custom_key’ => array( ‘thumbnail’ ), ‘default_size’ => ‘thumbnail’, ‘width’ => ‘310’, ‘height’ => ‘150’ ) ); ?>
    <?php the_excerpt(); ?>
    <p class=”postmetadata”><?php the_time( get_option( ‘date_format’ ) ); ?> | <?php comments_popup_link(‘Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
    </div>
    <?php if ($i == 3) { ?><div class=”archive-stack clear”></div><?php $i = 0; } ?>
    <?php endwhile; endif; ?>

    <div class=”clear”></div>

    <div class=”navigation”>
    <div><?php next_posts_link(‘« Older Entries’) ?></div>
    <div><?php previous_posts_link(‘Newer Entries »’) ?></div>
    </div>

    <?php get_template_part( ‘bottom’ ); ?>
    <?php get_footer(); ?>

    ——————————————- and (single.php)

    <?php get_header(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <h6 class=”underlined”><?php the_title(); ?></h6>
    <div <?php if(function_exists(‘post_class’)) : ?><?php post_class(); ?><?php else : ?>class=”post post-<?php the_ID(); ?>”<?php endif; ?>>
    <div class=”content clearfix”>
    <?php
    $values = get_post_custom_values(“multimedia”);
    if (isset($values[0])) {
    ?>
    <div class=”multimedia clearfix”>
    <?php $values = get_post_custom_values(“multimedia”); echo $values[0]; ?>
    </div>
    <?php } ?>

    <?php the_content(); ?>
    <?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’ ), ‘after’ => ‘</div>’ ) ); ?>
    </div>
    </div>

    <p class=”postmetadata”><?php the_time( get_option( ‘date_format’ ) ); ?> | Filed under <?php the_category(‘, ‘) ?><?php if (get_the_tags()) the_tags(‘ and tagged with ‘); ?>. <?php edit_post_link(‘Edit’, ‘| ‘, ”); ?> </p>
    <p class=”postmetadata”><?php the_tags(); ?></p>

    <div class=”nav prev left”><?php next_post_link(‘%link’, ‘←’, TRUE); ?></div>
    <div class=”nav next right”><?php previous_post_link(‘%link’, ‘→’, TRUE); ?></div>
    <div class=”clear”></div>

    <?php endwhile; else : ?>

    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
    <?php get_search_form(); ?>

    <?php endif; ?>
    <?php hideshowComments(); ?>
    <?php get_template_part( ‘bottom’ ); ?>
    <?php get_footer(); ?>

  • The topic ‘F8 Static-hide the text of post on front page’ is closed to new replies.