New Landing How can we help? Themeforest Theme Support Flexform Search results love it display

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Flexform
  • #11274
    sta
    Member
    Post count: 36

    Hi,

    The good news is that updating to 1.4.3 now displays the featured image for pages in the search results – yeah!

    I need some guidance in tweaking the display of the search layout.

    I am only using the love-it rating and comments on some of my pages (not all) as well as posts and portfolio items.

    I have two page templates – one with love-it and comments, one without either.

    Pages with love-it and comments display as I need them to on search. Those pages without love-it or comments do not display comments (as page set not to accept comments) but the heart for love-it displays with a zero.

    Is there anyway to fix this so the search results display ‘default page template’ as is…but ‘custom page template’ pages do not show the heart?

    Thanks in advance

    #11413
    sta
    Member
    Post count: 36

    Hi, figured it out

    #11468
    Ben – SUPPORT
    Member
    Post count: 690

    Hey, what seemed to be the fix if possible, might be a help for other people if they’re having the same issue

    Thanks
    Ben

    #11499
    sta
    Member
    Post count: 36

    Hi Ben,

    Changed sf-post-formats.php to only show love-it if comments open

    if ( comments_open() ) {
    $post_item .= lip_love_it_link(get_the_ID(), ‘<i class=”icon-heart”></i>’, ‘<i class=”icon-heart”></i>’, false);
    }

    #232585
    dankaufman
    Member
    Post count: 9

    Hi,

    I also don’t want comments, likes or even the post/page date to appear in any search results. I tried the tip above but it didn’t work for me. Then again, I wasn’t sure exactly where in sf-post-formats to put the line.

    Is it possible to provide a more specific explanation of how to do this?

    I’d really appreciate it.

    Thanks,

    Dan

    #233005
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Dan,

    Please just add this custom CSS to your theme options:

    .search .recent-post .post-item-details {
        display: none;
    }

    Thanks.

    #233243
    dankaufman
    Member
    Post count: 9

    Hi David,

    Thanks for that – but unfortunately it didn’t work, even after I deleted my server cache (I’ve attached a screenshot).

    Any other tips on how I can remove those heart and comment icons?

    Thanks,

    Dan

    Attachments:
    You must be logged in to view attached files.
    #233259
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .comments-likes{
    display:none !important;
    }

    Thanks
    Mohammad

    #233264
    dankaufman
    Member
    Post count: 9

    That worked! Thank you.

    #233266
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome and glad to help you.
    Thanks
    Mohammad

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register