WordPress.org

Ready to get started?Download WordPress

Forums

How to remove meta tag from template TREEVIEW (2 posts)

  1. zzehf
    Member
    Posted 1 year ago #

    i m using TREEVIEW template and want to remove meta tags which are showing in every post of my website, its look dirty.
    here is Home.php code
    <?php get_header(); ?>

    <?php do_action( 'bp_before_content' ) ?>

    <!-- CONTENT START -->
    <div class="content">
    <div class="content-inner">

    <?php do_action( 'bp_before_blog_home' ) ?>

    <!-- POST ENTRY START -->
    <div id="post-entry">
    <section class="post-entry-inner">

    <?php
    if ( $paged >= 2 || $page >= 2 ) { } else { ?>
    <?php get_template_part( 'lib/sliders/sslider' ); ?>
    <?php } ?>

    <?php if( !is_home() ) { get_template_part( 'lib/templates/headline' ); } ?>

    <?php $oddpost = 'alt-post'; $postcount = 1; if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php do_action( 'bp_before_blog_post' ) ?>

    <!-- POST START -->
    <article <?php post_class('home-post ' . $oddpost); ?> id="post-<?php the_ID(); ?>">
    <div class="article-blk">
    <?php echo get_featured_post_image("<div class='post-thumb'>", "</div>", 400, 280, "alignleft", "medium", 'image-'.get_the_ID() ,get_the_title(), false); ?>
    <div class="post-top">

    <div class="post-meta the-icons pmeta-alt">
    <span class="post-category"><?php echo get_singular_cat(); ?></span>
    </div>

    <h1 class="post-title">" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h1>

    <?php get_template_part( 'lib/templates/post-meta-home' ); ?>

    <div class="sharebox-wrap">
    <?php get_template_part( 'lib/templates/share-box' ); ?>
    </div>

    </div>
    <div class="post-content">
    <?php get_the_featured_excerpt($excerpt_length=16); ?>
    <!--<div class="post-more">" title="<?php the_title(); ?>"><?php _e('Read more', TEMPLATE_DOMAIN); ?></div>-->
    </div>
    </div>
    </article>
    <!-- POST END -->

    <?php do_action( 'bp_after_blog_post' ) ?>

    <?php ($oddpost == "alt-post") ? $oddpost="" : $oddpost="alt-post"; $postcount++; ?>

    <?php $get_google_code = get_theme_option('adsense_post'); if($get_google_code == '') { ?>
    <?php } else { ?>
    <?php if( 4 == $postcount || 7 == $postcount ){ ?>
    <div class="adsense-post">
    <?php echo stripcslashes($get_google_code); ?>
    </div>
    <?php } ?>
    <?php } ?>

    <?php endwhile; ?>

    <?php comments_template( '', true ); ?>

    <?php else: ?>

    <?php get_template_part( 'lib/templates/result' ); ?>

    <?php endif; ?>

    <?php get_template_part( 'lib/templates/paginate' ); ?>

    </section>

    </div>
    <!-- POST ENTRY END -->

    <?php do_action( 'bp_after_blog_home' ) ?>

    </div><!-- CONTENT INNER END -->
    </div><!-- CONTENT END -->

    <?php do_action( 'bp_after_content' ) ?>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    and here is index.php
    <?php get_header(); ?>

    <?php do_action( 'bp_before_content' ) ?>

    <!-- CONTENT START -->
    <div class="content">
    <div class="content-inner">

    <?php do_action( 'bp_before_blog_home' ) ?>

    <!-- POST ENTRY START -->
    <div id="post-entry">
    <section class="post-entry-inner">

    <?php if( !is_home() ) { get_template_part( 'lib/templates/headline' ); } ?>

    <?php $oddpost = 'alt-post'; $postcount = 1; if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php do_action( 'bp_before_blog_post' ) ?>

    <!-- POST START -->
    <article <?php post_class($oddpost); ?> id="post-<?php the_ID(); ?>">

    <?php echo get_featured_post_image("<div class='post-thumb in-archive'>", "</div>", 650, 300, "alignleft", "large", 'image-'.get_the_ID() ,get_the_title(), false); ?>

    <div class="post-top">
    <h1 class="post-title">" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h1>
    <?php get_template_part( 'lib/templates/post-meta' ); ?>
    <div class="sharebox-wrap">
    <?php get_template_part( 'lib/templates/share-box' ); ?>
    </div>
    </div>

    <div class="post-content">
    <?php get_the_featured_excerpt($excerpt_length=80); ?>
    <div class="post-more">" title="<?php _e('Continue reading', TEMPLATE_DOMAIN); ?> <?php the_title(); ?>"><?php _e('Click here to read more »', TEMPLATE_DOMAIN); ?></div>
    </div>

    <div class="separator"></div>

    </article>
    <!-- POST END -->

    <?php do_action( 'bp_after_blog_post' ) ?>

    <?php $get_google_code = get_theme_option('adsense_post'); if($get_google_code == '') { ?>
    <?php } else { ?>
    <?php if( 1 == $postcount || 2 == $postcount ){ ?>
    <div class="adsense-post">
    <?php echo stripcslashes($get_google_code); ?>
    </div>
    <?php } ?>
    <?php } ?>

    <?php ($oddpost == "alt-post") ? $oddpost="" : $oddpost="alt-post"; $postcount++; ?>

    <?php endwhile; ?>

    <?php comments_template( '', true ); ?>

    <?php else: ?>

    <?php get_template_part( 'lib/templates/result' ); ?>

    <?php endif; ?>

    <?php get_template_part( 'lib/templates/paginate' ); ?>

    </section>
    </div>
    <!-- POST ENTRY END -->

    <?php do_action( 'bp_after_blog_home' ) ?>

    </div><!-- CONTENT INNER END -->
    </div><!-- CONTENT END -->

    <?php do_action( 'bp_after_content' ) ?>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    kindly reply me in fully detail i ll b thankfull t u

  2. Abhishek Ghosh
    Member
    Posted 1 year ago #

    Please use pastebin for posting bigger snippets / codes.

    ...which are showing in every post of my website, its look dirty

    If you provide the url, it will be easier to understand. Regarding Treeview, are you saying about this one :

    http://www.magpress.com/wordpress-themes/treeview.html

Topic Closed

This topic has been closed to new replies.

About this Topic