Support » Theme: Hueman » Category comment count disappeared

  • Resolved mariska88

    (@mariska88)


    Good morning!

    Recently the category + comment count disappeared at the top of every blogpost; the “page-title pad group”.

    I think it’s since the last update, or the one before that.

    I went to my custom CSS (because I did disable a couple of “page-title” for specific pages), but I couldn’t find anything out of the ordinary. Then I went through the customized PHP files of my Child Theme, but also there I had no luck.

    URL of my site: http://tipsthailand.nl/
    Specific blogpost: http://tipsthailand.nl/mooiste-stranden-van-thailand/

    What am I missing? I really hope someone can help me to get this function back!

    Thanks in advance, I appreciate any help!

    PS: I also have a question related to this: I also wish to show the “page-title” with comment counts at the top of every page. How do I go about it?

    Greets from The Netherlands,

    Marika

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Marika. Do you have a modified single.php file in your child theme? The post you linked appears to have an additional class (singlephp) in the section element, and is missing the page-title div which is loaded by this line in single.php:

    <?php get_template_part('parts/page-title'); ?>
    Thread Starter mariska88

    (@mariska88)

    Hi bdbrown,

    Thanks for your quick reply!

    I do have a modified single.php – but I did not remove the page-title line:

    <?php get_header(); ?>
    
    <section class="content singlephp">
    
    	<?php get_template_part('inc/page-title'); ?>

    When comparing the modified single.php to the original single.php, I did notice that there was a slight difference; my line uses ‘inc/’ and the original ‘parts/’.

    I tried to adjust it to ‘parts/’ but it didn’t make a difference.

    Greets, Mariska

    Yes, that’s one thing that’s changed in the new version. If you can paste your modified single.php on Pastebin http://pastebin.com/ and then post a link here, I’ll take a look at it.

    Here’s a post that discussed some of the changes in the first 3.x version:
    https://wordpress.org/support/topic/pre-update-questions-from-225-to-311?replies=13
    You can also find release notes for previous versions here:
    http://presscustomizr.com/category/hueman-releases/

    Thread Starter mariska88

    (@mariska88)

    Done: http://pastebin.com/5xKFTtzZ

    Thanks a lot bdbrown, I really appreciate you helping me! I’ll look through the release notes now, thanks!

    It appears there are some significant differences between the current version default and your modified version. Couple of things stand out just off the top:
    1. “/inc” has been changed to “/parts”
    2. “ot_get_option” is no longer used
    3. Not sure what this is at the start of this line; code you want displayed on the page?

    Bijgewerkt op <?php if( get_the_modified_date() != get_the_date()) echo the_modified_date(); else the_date (); ?>

    4. And also the bar at the start of this line; a bar between text?

    | <?php _e('by','hueman'); ?> <?php the_author_posts_link(); ?></p>

    My suggestion would be to figure out what your modifications are in your current child theme version, then apply those to a copy of the new version single.php. Maybe consider applying one change at a time so you know one works before adding another one.

    Thread Starter mariska88

    (@mariska88)

    Thanks bdbrown!

    It works great now.

    I fixed it by deleting the old single.php file in my child theme, and made the adjustments in the new child.php theme. I did this for all my .php files and the site runs a lot smoother now.

    I will go through the changes/release notes now to check if there is anything else I need to adjust.

    Thanks again for your help!

    Have a wonderful day,

    Mariska

    You’re welcome; glad you got it fixed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Category comment count disappeared’ is closed to new replies.