• Hi

    I am running the premium theme: Engine

    I want to know how to make the home page display the first post as a “Full Post” instead of an “excerpt”.

    I have asked the support from dev and he is unresponsive, don’t go with these guys if you ever wanted a custom theme, lots of headaches.

    The index.php text in the editor is this:
    <?php get_header(); # show header ?>

    <?php
    #loop through builder panels
    $builders = it_get_setting(‘front_builder’);
    if(!empty($builders) && count($builders) > 2) {
    foreach($builders as $builder) {
    it_shortcode($builder);
    }
    } else {
    echo do_shortcode(‘[loop loading=”paged” layout=”d”]’);
    }
    ?>

    <?php get_footer(); # show footer ?>

    The archive:

    <?php get_header(); # show header ?>

    <?php
    #get the current category archive
    $catid = get_query_var(‘cat’);
    $catid = empty($catid) ? -1 : $catid; #if no catid it will return all posts, so set to -1 in that case
    $args = array(‘meta_key’ => ‘_category_frontpage’, ‘meta_value’ => $catid, ‘post_type’ => ‘page’);
    $itpage = new WP_Query( $args );
    if ($itpage->have_posts()) : while ($itpage->have_posts()) : $itpage->the_post();

    the_content();

    endwhile;
    else:

    #loop through builder panels from theme options
    $builders = it_get_setting(‘archive_builder’);
    if(!empty($builders) && count($builders) > 2) {
    foreach($builders as $builder) {
    it_shortcode($builder);
    }
    } else {
    echo do_shortcode(‘[loop loading=”paged” layout=”d”]’);
    }

    endif;
    ?>

    <?php get_footer(); # show footer ?>

    If anyone knows what to do I would be super grateful,

    Thanks

    Jack

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cyrax

    (@cyrax)

    $out.='<div class=”loop-info-wrapper”>’;

    $out.='<div class=”loop-info”>’;

    if(!it_get_setting(‘loop_authorship_disable’)) $out .= it_get_authorship(‘date’, false, false);

    $out .= $title;

    if(!it_get_setting(‘loop_excerpt_disable’)) $out .= ‘<div class=”excerpt”>’ . it_excerpt($len_excerpt) . ‘</div>’;

    $out.='</div>’;

    is this what i need to Change?

    Thread Starter cyrax

    (@cyrax)

    #setup variables
    $layout = empty($layout) ? ” : $layout;
    $len_title = 300;
    $len_excerpt = it_get_setting(‘loop_excerpt_length’);
    $len_excerpt = !empty($len_excerpt) ? $len_excerpt : 700;
    $width = 712;
    $height = 400;
    $size = ‘loop’;
    $labels = ‘hide’;

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme: Engine]’ is closed to new replies.