• Resolved road rebel

    (@road-rebel)


    Hi all,

    I would like to flatten the single post view:
    Removing tags and authors was done successfully, However I’m unable to:

    1) hide titles
    2) disable comments

    For 1->
    .type-page .entry-title {display: none;} in CSS does not work

    /* Remove Page Icon/Title */
    .page .entry-title.format-icon {
    display: none;
    }
    in CSS does work ?? but
    /* Remove Post Icon/Title */
    .post .entry-title.format-icon {
    display: none;
    }
    does not ??

    For 2->
    As you can see it should be disabled:

    https://i61.tinypic.com/2cham9e.png

    https://i57.tinypic.com/n1ay6r.png

    However, it is not ??

    Most of support topics and tutorials are dealing with older versions of customizr/wordpress, however things changed in latest versions.

    this is the current website: https://www.pupwelfare.be

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,
    you say single posts view, but for example , the first css
    .page .entry-title.format-icon { is for pages, and for pages where the icon is displayed next to the title, if you chose to not display the icons, or is so by default.. it depends on the first version you installed, that rule will not work.
    Say you want to disable bot posts and pages titles (and metas and .. the whole heading block), just in “single”:

    #content > article > .entry-header {
    display: none;
    }

    but I see you use something similar here: https://pupwelfare.be/fr/projet/

    About comments, the second image is still for comments in pages (wordpress Pages), not for posts, and as you can see doesn’t show the comment box in your page above ??

    Don’t know why the single posts still show the comment box in your case, maybe you can check if the comments are enabled for those single posts, as you can read in the first image: (These settings may be overridden for individual articles.)

    To check whether they’re enabled or not for your posts, when editing a post look for teh box “Discussion”, if you can’t see it, click on “Screen Options” (top-right) and check “Discussion” under “Show on screen”.

    Hope this helps

    Thread Starter road rebel

    (@road-rebel)

    Thank you very much for your answer d4z_c0nf!

    For part 1: hiding titles your code did the trick. great!

    For part 2: individual post settings do not allow discussion (checkbox unchecked). I do not understand why I can’t remove the comments on single posts because on my test website it was possible. Maybe there is some incompatibility with one of my plugins? As a work-around, do you think I could hide the comments in CSS?

    regards,

    Yeah you can do with CSS but is still weird:

    .single-post #comments {
        display: none;
    }

    Thread Starter road rebel

    (@road-rebel)

    It doesn’t seem logic to me why comments do not respond to general settings. However, your CSS did the trick. Thank you very much!

    Hi road, in fact is not logical.
    Posts follow the general rule you set in wordpress Settings -> Discussion.
    But as stated there:
    (These settings may be overridden for individual articles.)

    So your individual posts have the comments opened.

    Thread Starter road rebel

    (@road-rebel)

    Higher up in this thread, you talked about the “screen options” in the post editing.
    As you can see in following screenshot, the “discussion” checkbox remains unchecked. It is the same for all other posts.

    screenshot on tinypic (external link)

    Is there another option to change the “discussion status” of a single post?

    Well, there’s a misunderstanding here.
    In screen options you select which boxes you want to see in the edit page (WordPress stuff, not theme related).
    The fact that the Discussion check is unchecked there doesn’t mean that the Comments are closed, means just that you don’t see the box where the actual Discussion options are.
    So check the Discussion option, then in the page you’ll see the Discussion box, and you can uncheck the comments.

    Thread Starter road rebel

    (@road-rebel)

    That was an AHA-erlebnis. Thank you very much! I’m coming from joomla and still a lot to learn on wordpress!

    ??
    Glad you solved.
    Would you mind marking this topic as resolved?
    Thanks

    Thread Starter road rebel

    (@road-rebel)

    Thank you very much for al help and patience. Topic solved!

    You’re welcome, and don’t worry misunderstandings, specially when talking in a foreign language (english isn’t my mother tongue, as you might have noticed :D), are normal.

    Cheers ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘single post view: hide title and comments’ is closed to new replies.