Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #656927

    Hello,
    Is there a way to mark a post as New (unread by the user) by making a star, image or text appear next to the post name in a widget.
    I tried with the “Mark new posts” plugin, which in principle does what I want. But it only adds the unread mark to the post header when viewing the post the first time. The unread mark does not appear in the widgets I use to list posts of a certain category.

    Any input is much appreciated.

    Thanks

    #657436

    Hi JacobSalomonsen,

    It sound like that would take a lot of customisations to the theme and would be out of scope for theme support unfortunately. I might have misunderstood your request, if you think that is the case then please try to explain a bit further and post a link to your site. If you are looking for a freelancer to help you out with customisation then please try contacting Codeable

    Thanks,
    Rikard

    #657453

    Hi Rikard,
    Thanks for getting back. Here’s what I am trying to accomplish:
    I would like to display a symbol (star, image or simply a css rule) next to the name of a post that has not been read by the logged-in user.
    On our intranet we have a bunch of posts with different categories. These categories are displayed on the front page as widgets using the “Enfold Latest News” widget filtered on each category. It would be amazing if “Unread-symbol” could be next to a post that the logged-in user has not read.
    The “Mark new posts” plugin does almost this – although it only displays the mark in the header of each post – not in the widget.
    Hope this helps. Thanks again for your reply.
    BR
    Jacob

    #658631

    Hi,

    Using Mark new posts would probably be the more convenient option, perhaps we can mod the widget function to make it work together, can you post a link to your site?

    Best regards,
    Josue

    #659103

    Hi Josue,
    Thanks for getting back. I think the approach you suggest sounds good. However posting a link for our site is not an option. But the site is using the newest Enfold (child) theme and a few plugins that do not modify standard Enfold features. So I think a general modification of the Widget to support what I described earlier, should work fine.
    I highly appreciate your interest in this matter.
    Best
    Jacob

    #659642

    Hi,

    Which exact Widget are you using? can you post a screenshot of the back-end?

    Best regards,
    Josue

    #659718

    Hi again,
    I’m using the Enfold Child Latest News. Please see screenshot links below.

    So basically I need the Latest News widget to be able to display the Unread Symbol provided by the “Mark New Posts” plugin.
    Thanks – I really appreciate your help.

    BR
    Jacob

    #660029

    OK, you’ll need to mod the plugin, open /wp-content/plugins/mark-new-posts/mark-new-posts.php and look for this line:

    if (!in_the_loop() || !$this->is_new_post($post_id)) return $title;
    

    Replace it by:

    if (!$this->is_new_post($post_id)) return $title;
    

    Best regards,
    Josue

    #660258

    Hello again Josue,

    Top Tip! Thanks
    It works like a dream.

    Thanks to you and the other guys at your team for all your excellent help.

    BR
    Jacob

    #660560

    You are welcome Jacob, glad to help :)

    Regards,
    Josue

    #1229976

    Hello Josue,

    great work… is there any chance to get this working only in the latest news widget but not in the Post loop?

    Regards,

    Bastian

    #1230090

    Hi Bastian,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

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