WordPress.org

Ready to get started?Download WordPress

Forums

Foto
[resolved] on site view and meta information on posts (9 posts)

  1. lottiejam
    Member
    Posted 1 year ago #

    Hi is there any way I can remove the views and the meta box from the posts page? All thoughts welcome thanks.

    http://wordpress.org/extend/themes/foto/

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    You may need to manually remove <meta> HTML elements, if that's what you're referring to, in the header.php file.
    Theme files should avoid modifications and instead Child Themes should be used.

  3. lottiejam
    Member
    Posted 1 year ago #

    Hi there thanks for the response, set me in the right direction, solution was in the content and content single.php documents.

  4. Jana
    Member
    Posted 1 year ago #

    lottiejam -- Can you please describe what you removed or changed, specifically? Thanks.

  5. lottiejam
    Member
    Posted 1 year ago #

    Hi there

    it was a while ago, but this is the syntax i was left with so removed everything but that:

    <?php
    /**
     * The Template for displaying all single posts
     *
     * @package foto
     * @since foto 0.0.1
     */
    
    get_header(); ?>
    
    		<?php do_action( 'foto_before_content_singular' ); ?>
    
    		<section id="content" class="site-content" role="main">
    
    			<?php do_action( 'foto_before_article_singular' ); ?>
    
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php foto_setPostViews(get_the_ID()); ?>
    				<?php get_template_part( 'content', 'single' ); ?>
    
    			<?php endwhile; // end of the loop. ?>
    
    			<?php do_action( 'foto_after_article_singular' ); ?>
    
    		</section><!-- end #content .site-content -->
    
    		<?php do_action( 'foto_after_content_singular' ); ?>
    
    <?php get_footer(); ?>

    hope this is helpful.

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @jana -- make sure you are using a child theme if you are modifying files...

  7. lottiejam
    Member
    Posted 1 year ago #

    Hi Sorry about the code post - first timer and missed the instruction

  8. Jana
    Member
    Posted 1 year ago #

    Never mind; I found it. In "content-single.php" ; look for "entry meta"

  9. Satrya
    Member
    Theme Author

    Posted 1 year ago #

    @lottiejam thanks for answering the question :)

    Remove all the meta post on the left side

    <aside class="secondary col-6">

    `<div class="entry-meta">
    <div class="content-heading"><?php _e('Entry Meta', 'foto'); ?></div>
    <?php foto_entry_meta(); ?>
    </div><!-- end entry-meta -->

    <?php do_action( 'foto_after_entry_meta' ); ?>

    </aside><!-- end .secondary -->`

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags