Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #357479

    Two questions :
    1. First, i would put the comments then the most recent posts and finally the most popular. What should I do?
    2. And in case I just want the comments?
    Enfold v 3.0.4
    Thank you

    #357553

    Hi entomeu!

    1- Please go to Enfold/framework/php file 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>";
    
    			echo '<div class="tab widget_tab_comments"><span>'.__('Comments', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content'>";
    			avia_get_comment_list( array('number' => $posts, 'status' => 'approve', 'order' => 'DESC') );
    			echo "</div>";

    and change it to

    echo '<div class="tab widget_tab_comments"><span>'.__('Comments', 'avia_framework').'</span></div>';
    			echo "<div class='tab_content'>";
    			avia_get_comment_list( array('number' => $posts, 'status' => 'approve', 'order' => 'DESC') );
    			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>";
    
    			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>";

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

    .widget_tab_popular, .widget_tab_recent {
    display: none!important;
    }

    Regards,
    Yigit

    #358932

    Thanks for your quick reply.
    I adapted the code to fit my needs:

    echo ‘<div class=”tab first_tab active_tab widget_tab_comments”><span>’.__(‘Comments’, ‘avia_framework’).'</span></div>’;
    echo “<div class=’tab_content active_tab_content’>”;
    avia_get_comment_list( array(‘number’ => $posts, ‘status’ => ‘approve’, ‘order’ => ‘DESC’) );
    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>”;

    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>”;

    #359239

    Hi!

    You are welcome, glad we could help :)
    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 :)

    Cheers!
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Combo widget’ is closed to new replies.