Support » Theme: Foto » [Theme: Foto] on site view and meta information on posts

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Andrew Nevins

    (@anevins)

    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.

    lottiejam

    (@lottiejam)

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

    Jana

    (@janajanasnydercom)

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

    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.]

    @jana — make sure you are using a child theme if you are modifying files…

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

    Jana

    (@janajanasnydercom)

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

    Theme Author Satrya

    (@satrya)

    @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 –>`

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Theme: Foto] on site view and meta information on posts’ is closed to new replies.