Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #700821

    Hello. Is there a way to make the Combo Widget show the “Recent” tab as default rather than the “Popular” tab?

    #700826

    Hey Circle of Blue,

    Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)

    Best regards,
    Vinay

    #700847

    Link below.

    Actually would want to hide the Comments tav too as we are using Facebook comments.

    #700850

    Hi!

    1- Please go to Enfold/framework/php folder and open class-framework-widgets.php file and find

    			echo '<div class="tab first_tab active_tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content active_tab_content'>";
    			avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts);
    			echo "</div>";
    
    			echo '<div class="tab widget_tab_recent"><span>'.__('Recent', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content'>";
    			avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');
    			echo "</div>";

    and change it to

    
    			echo '<div class="tab first_tab active_tab widget_tab_recent"><span>'.__('Recent', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content active_tab_content'>";
    			avia_get_post_list('showposts='. $posts .'&orderby=post_date&order=desc');
    			echo "</div>";
    
    			echo '<div class="tab widget_tab_popular"><span>'.__('Popular', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content'>";
    			avia_get_post_list('cat=&orderby=comment_count&posts_per_page='.$posts);
    			echo "</div>";

    2- Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .tab.widget_tab_comments {
        display: none!important;
    }

    Best regards,
    Yigit

    #700888

    Nice. Works like a charm!

    #700909

    Hi!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Combo Widget: Recent Tab as default’ is closed to new replies.