WordPress.org

Forums

Preference Lite
How to Remove "Posted in" and "Tagged" at the bottom of posts in Preference Lite (5 posts)

  1. Renai100
    Member
    Posted 1 year ago #

    Hi, I am using the Preference Lite theme and I noticed there are "posted in:" (then followed by the category name) and "tagged:" (then followed by the series of tagged terms) links at the bottom of my wordpress posts. How do I remove those? I would rather my posts be cleared of such links as I do not want viewers to know how my posts are tagged and the category they are posted in.

    Any help will be much appreciated!! Thanks in advance!

    Renai

  2. bravokeyl
    Member
    Posted 1 year ago #

    There are two two ways to do it.

    1) Using custom css (Use Simple custom CSS Plugin if you don't have option for custom css)

    .single-post .entry-footer {
    display: none;
    }

    but this also not display paginate links if a page is broken down into subpages.

    2) creating Child Theme
    create a child theme and copy content-single.php and go to lines 40-49 where it says

    <?php
    $categories_list = get_the_category_list( _x( ', ', 'used between list items, there is a space after the comma', 'preference' ) );
    		$tags_list = get_the_tag_list( '', _x( ', ', 'used between list items, there is a space after the comma', 'preference' ) );
    
    		if ( $categories_list )
    			printf( '<span>' . __( '<span class="cat-links">Posted in: </span> %1$s.', 'preference' ) . '</span><br />', $categories_list );
    		if ( $tags_list )
    			printf( '<span>' . __( '<span class="tag-links">Tagged: </span> %1$s.', 'preference' ) . '</span><br />', $tags_list );
    		?>
    		<?php  the_modified_date( 'F j, Y', __( '<span class="modified-date">Last Modified: </span> ', 'preference') ); ?>

    comment it or remove it..

  3. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    The best way is to use a CSS Editing plugin, such as was just suggested and do it as was posted:

    .single-post .entry-footer {
    display: none;
    }

    If you use a child theme method, this theme already has an installable child theme. You will find it in your theme files in a folder named "child-theme".

  4. lucabrasi40
    Member
    Posted 6 months ago #

    Where do I add the code at? I got the plugin and put:
    .single-post .entry-footer {
    display: none;
    }
    but the category and tags did not go away.

    I just put the code into the Simple CSS, should I be putting it into a specific file?
    ......................
    What I want to end up with is my
    Category
    Homepage
    at the end of every post
    ...............
    Is there a way to do that. I was just going to get rid of what I had by not displaying it and then manually adding the parent category to each post.

    I would much prefer to just do it automatically, (by adding code) if possible.

    Right now each post has the homepage but no parent category. How do I get rid of the post-tag shown by default and get the Category, Homepage that I want.

  5. StyledThemes
    Member
    Theme Author

    Posted 5 months ago #

    Just to inform you all that this theme is no longer available in WordPress theme store and support is phasing out for this theme.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic