• Resolved dhaval120386

    (@dhaval120386)


    Hi ,

    I am working on TechBoard theme for a client and the Home page https://chipguru.in/ has these posts and client wants these posts to be displayed as
    <h3> size post title
    image for the post left alligned and also I need assistance in removing the Home and eidt page from the screen.

    I have put the what the file plugin and it shows that the page is using page.php and post-page.php.

    file contents are
    page.php

    <?php global $theme; get_header(); ?>

    <div id=”main”>

    <?php $theme->hook(‘main_before’); ?>

    <div id=”content”>

    <?php $theme->hook(‘content_before’); ?>

    <?php
    if (have_posts()) : while (have_posts()) : the_post();
    /**
    * Find the post formatting for the pages in the post-page.php file
    */
    get_template_part(‘post’, ‘page’);

    if(comments_open( get_the_ID() )) {
    comments_template(”, true);
    }
    endwhile;

    else :
    get_template_part(‘post’, ‘noresults’);
    endif;
    ?>

    <?php $theme->hook(‘content_after’); ?>

    </div><!– #content –>

    <?php get_sidebars(); ?>

    <?php $theme->hook(‘main_after’); ?>

    </div><!– #main –>

    <?php get_footer(); ?>

    and post-page.php

    <?php global $theme; ?>

    <div <?php post_class(‘post page clearfix’); ?> id=”post-<?php the_ID(); ?>”>
    <h2 class=”title”><?php the_title(); ?></h2>

    <?php if(is_user_logged_in()) { ?>
    <div class=”postmeta-primary”><span class=”meta_edit”><?php edit_post_link(); ?></span></div>
    <?php } ?>

    <div class=”entry clearfix”>

    <?php
    if(has_post_thumbnail()) {
    the_post_thumbnail(
    array($theme->get_option(‘featured_image_width_single’), $theme->get_option(‘featured_image_height_single’)),
    array(“class” => $theme->get_option(‘featured_image_position_single’) . ” featured_image”)
    );
    }
    ?>

    <?php
    the_content(”);
    wp_link_pages( array( ‘before’ => ‘<p>‘ . __( ‘Pages:’, ‘themater’ ) . ‘‘, ‘after’ => ‘</p>’ ) );
    ?>

    </div>

    </div><!– Page ID <?php the_ID(); ?> –>

    I tried to use CSS on title class but nothing happening so please assist.

    Thanking you in advance for assistance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘separate title of the post and post image and display them in a different wayt’ is closed to new replies.