• Resolved monounlimited

    (@monounlimited)


    Hello,

    How do I remove the text at the bottom of a page containing posts, that says, e.g.
    Posted in News | Comments Off ?

    Thanks,
    Monique

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eric Amundson

    (@sewmyheadon)

    Hi Monique,

    If you’re using Posts in Page, I’d recommend copying the posts_loop_template.php file from the plugin’s templates folder to your theme and customize it there. You can find some instructions at the bottom of the shortcode list on this page.

    [ic_add_posts template=’template-in-theme-dir.php’] – In case you want to style your markup, add meta data, etc. Each shortcode can reference a different template. These templates must exist in the theme directory or in a sub-directory named posts-in-page.

    Once you’ve copied that file into your theme per above, you’ll likely want to remove or comment out lines 30 – 76:

    <!--	This outputs the post META information -->
    <div class="entry-utility">
    	<?php
    	/* translators: used between list items, there is a space after the comma. */
    	$categories_list = get_the_category_list( __( ', ', 'posts-in-page' ) );
    	if ( $categories_list ) :
    		?>
    		<span class="cat-links">
    			<?php
    			printf(
    				/* translators: 1: posted in label. 2: list of categories. */
    				'<span class="entry-utility-prep entry-utility-prep-cat-links">%1$s</span> %2$s',
    				esc_html__( 'Posted in', 'posts-in-page' ),
    				$categories_list // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    			);
    			?>
    		</span>
    		<span class="meta-sep">|</span>
    	<?php endif; ?>
    	<?php
    	/* translators: used between list items, there is a space after the comma. */
    	$tags_list = get_the_tag_list( '', __( ', ', 'posts-in-page' ) );
    	if ( $tags_list ) :
    		?>
    		<span class="tag-links">
    			<?php
    			printf(
    				/* translators: 1: tagged label. 2: list of tags. */
    				'<span class="entry-utility-prep entry-utility-prep-tag-links">%1$s</span> %2$s',
    				esc_html__( 'Tagged', 'posts-in-page' ),
    				$tags_list // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    			);
    			?>
    		</span>
    		<span class="meta-sep">|</span>
    	<?php endif; ?>
    	<span class="comments-link">
    		<?php
    		comments_popup_link(
    			esc_html__( 'Leave a comment', 'posts-in-page' ),
    			esc_html__( '1 Comment', 'posts-in-page' ),
    			esc_html__( '% Comments', 'posts-in-page' )
    		);
    		?>
    	</span>
    	<?php edit_post_link( esc_html__( 'Edit', 'posts-in-page' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
    </div>

    Does that make sense?

    • This reply was modified 5 years, 5 months ago by Eric Amundson.
    Thread Starter monounlimited

    (@monounlimited)

    Thank you so much Eric, that worked perfectly! ??

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Yay! Thanks for letting me know.

    Have a great weekend!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove reference to Category and Comments’ is closed to new replies.