Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1408570

    Hi,

    I don’t like the layout of the standard “Recent Comments” widget (in this screenshot marked in orange), but I like the layout of the recent comments coming with the Combo Widget (in the screenshot marked in blue):

    xxx

    I found a very old thread, where to change the file, but this file seems to exist no longer.

    How can I modify the Combo Widget so that it shows only the recent comments?

    Thank you.

    #1408620

    Hey BeeCee,

    Thank you for the inquiry.

    You can now configure the visibility of the content in the combo widget. Please follow these steps:

    1.) Locate the combo widget settings.
    2.) Look for the option called “Content of next tab” in the widget settings. This is a dropdown where you can select the kind of content that you would like to display in each tab.
    3.) If you don’t want to display popular or recent posts, select “No Content” from the dropdown menu.

    By selecting “No Content,” the combo widget will not display any specific content in the next tab. This allows you to customize the widget and exclude certain elements, such as popular or recent posts, based on your preferences.

    If you have any further questions or need additional assistance, just let us know.

    Best regards,
    Ismael

    #1408663

    sorry, I overlooked that there are new setting options, this works fine so far, thank you!!
    But how can I set now a normal widget title like “Recent Comments”, that has the same output as all other widgets’ titles, and hide the grey box “Comments” instead?

    xxx

    Thank you.

    #1408885

    Hi,
    Thanks for your patience, the gray box that you see is the tab title for the tab container, the combo widget uses tabs to show the content and doesn’t include the standard widget title h3 element like other widgets, but the comment widget does, since you don’t want to use any of the other features of the combo widget try using the comment widget instead.

    Best regards,
    Mike

    #1408887

    Thank you, Mike, but that is not what I want as I described in my my first post.

    So @ismael suggested to hide the other tabs of the combo widget, so that only “commets” remain. I could hide this tab via CSS, but how can I tweak the file so that I can add a widget title like other widgets have it please?

    #1408901

    Hi,
    I added a combo widget to your blog sidebar and set it to only show the comments as Ismael discribed above, then I created a snippet in your snippet plugin:

    function add_widget_title_to_combo_widget() { ?>
      <script>
    (function($){
    $('.inner_sidebar .avia_combo_widget').each(function() {
    $( this ).find('ul.news-wrap').detach().insertBefore('.tabcontainer');
    $( '<h3 class="widgettitle">Kommentare</h3>' ).insertBefore('.avia_combo_widget ul.news-wrap');
    $( this ).find('.tabcontainer').remove();
    $( this ).find('.seperator.extralight-border').remove();
    });
    })(jQuery);
    </script>
      <?php
    }
    add_action('wp_footer', 'add_widget_title_to_combo_widget');

    and added this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .js_active .avia_combo_widget .tabcontainer {
        display: none;
    }

    for this result:
    Enfold_Support_2187.jpeg
    please clear your browser cache and check.

    Best regards,
    Mike

    #1408926

    You’re the best, thank you so much for your time, Mike, that’s exactly how I’d like it!
    Thank you, you can close this thread now!

    #1408927

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to use COMBO WIDGET only for COMMENTS?’ is closed to new replies.