Home Forums WordPress Themes – Premium Preferential Need to remove post information

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16903
    ttm
    Participant

    I wanted to remove post info < Posted on: August 24, 2015 by: Editor > etc. Previously I could do it with CSS change but now cannot. I also want to include some category like
    See how I can do it.
    Wish you all a wonderful new year!

    #22250
    Sushil Adhikari
    Moderator

    Hi ttm,

    To hide post information from single post , please add this css in child theme[style.css]:

     article.post header .entry-meta {
    	display: none;
    }	

    To show category list on single post, please follow this steps:

    1> First copy content-single.php(Go to Theme folder->wp-content->Themes->preferential) file and paste it in to child theme directory(Go to Theme folder->wp-content->Themes->preferential-child)

    2> This code outputs category name assigned to particular post, you just need to add this code at the place where you wants to display

    $category_list = get_the_category_list( __( ', ', 'preferential' ) ); // variable $category_list holds name of category,  
            echo $category_list;  // This display  category name on single posts

    Don’t hesitate to contact us for any further information

    Note: Please use child theme to add this code otherwise your changes will be lost on theme update.

    Thanks

    #22254
    ttm
    Participant

    Thank you for your reply. But I could not do it still. Please explain where I need to insert the extra code, in the single.content.php or in my posts?
    The site is http://www.rupkatha.com
    Best

    #16904
    Sushil Adhikari
    Moderator

    Hi there,

    IF you want to display category on post page, then you need to add this code just below the preferential_posted_on() functions of content-single.php (Be sure you have used child theme templates)

     

    Please use this code if you are familiar with basic of php coding.

    Note: Please use child theme to add this code otherwise your changes will be lost on theme update.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.