• Resolved malky

    (@malky)


    I have been at this for hours and cannot get comments on the homepage although the box is checked?

    This is my wife’s new site and as I liked the theme for my own site, I am using it again. I must have an older version as it works ok on my site?
    It is now after midnight and I have compared everything and cannot see what settings are different
    Has anything changed?

Viewing 12 replies - 1 through 12 (of 12 total)
  • In the past few weeks, Czr was updated to 3.2.* but nothing in the area of Comments. Just made more Features available.

    Presume you’ve seen Customize>Content>Comments settings?

    Link to site?

    Thread Starter malky

    (@malky)

    Hi, my wife’s site is live. Unfortunately I am redesigning her new one on my localhost server.

    As you say Customize->Content->Comments
    In this area I have ‘Display the number of comments checked, Small Bubbles and Enable Comments on Pages checked.

    The normal WP settings are the same as her current live site and the comments appear on the home page with that one? I’m pretty stumped.

    Have you ever tried using the Developer Tools in FF or Chrome? It’s what we use when diagnosing problems.

    You’ll be able to investigate if Comments are rendered and then hidden, or if not rendered at all. Can compare with existing site and see what’s different.

    Thread Starter malky

    (@malky)

    Hi I have just tried this and it floats to the sidebar after the main article. There are no divs or anything after the article and before the sidebar?

    Using Inspect tool, can you see any CSS moving it?

    The actual generated HTML should be OK with native Czr. If using a Child Theme, can you switch to the native Theme and see what happens? Try a different Theme?

    Thread Starter malky

    (@malky)

    Still, nothing with css?

    Changed to 2014 theme and the comment appears no problem? Changed back to Czr and it disappears again?

    Probably I’m missing something.
    Do you have a static front page and you want to show the comments for that?

    Thread Starter malky

    (@malky)

    Yes, it works on the old site with the same theme and settings?

    Are you sure you don’t have a child theme in the old site and you made something to make it work?
    For what I can remember customizr doesn’t allow comments on the front page, or at least not from February (don’t know the release version).
    Anyway append this to your child-theme functions.php

    add_filter('tc_show_comments', 'show_comments_on_front');
    function show_comments_on_front($bool){
        return $bool || ( tc__f('__is_home') &&
            ( is_page() && 1 == esc_attr( tc__f('__get_option', 'tc_page_comments') ) ) );
    }

    Thread Starter malky

    (@malky)

    Hi d4z, thanks, this now works with the added function.

    I don’t have a child theme which is something I may look at. The current live site works ok though and also without a child theme. It has been going for some time, so maybe this functionality was removed in later updates for some weird reason? Seems better to have more options than less?

    Anyway, thank you very much again.

    Thread Starter malky

    (@malky)

    Created the child them with the above code and it works fine.

    Thank you very much!

    Malky

    Thread Starter malky

    (@malky)

    Forgot to set this as resolved.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘No Comments on home page?’ is closed to new replies.