Okay
  Public Ticket #246184
Disable Detail Info on Article Pages
Closed

Comments

  • S started the conversation

    Hi

    With Flavor 1.12 you changed the following:

    • Details fields can now display even if minisite post is set to article instead of review

    How can i deactivate this? I dont want use this Detail Box on Article Pages.

    Thanks in advance

  •  321
    Brian replied

    Just don't add any details to the post and it won't display.

  • S replied

    Hi Brian

    Thanks for your reply.
    But how can I hide the "Details Header"? Please see the Screenshot attached.

    Thanks in advance

    Stefan

  • Allen replied

    Having the same problem. The Details field shows even when the post is set to Article and no details have been added. Sample of a non-review article. Image also attached.

  •  321
    Brian replied

    I think that section actually needs to be reworked because that is not only where the details go but also the taxonomies and badges, and since you can't have 0 taxonomies for a post (i.e. a post has to be in at least one primary taxonomy) that section will never actually get hidden. This might be a temporary fix, not sure:

    Edit inc/page-content.php and locate line 419:

    <?php echo it_get_details(get_the_ID()); ?>

    Change it to this and see if that helps:

    <?php if(($minisite && $disable_review=='false')) echo it_get_details(get_the_ID()); ?>
  • S replied

    Hello Brian

    Your Hotfix works fine. Example: http://www.kapsel-check.com/kaffeekapseln/kaffeekapsel-preiskrieg-in-der-schweiz/

    Thank you very much.

    Regards

    Stefan


  • Allen replied

    Worked for me, too. Thanks!

  •  321
    Brian replied

    Great, thanks for verifying that this worked! That will benefit future similar issues anyone else comes across.