
-
AuthorPosts
-
November 25, 2014 at 12:35 pm #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 youNovember 25, 2014 at 3:26 pm #357553Hi 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,
YigitNovember 27, 2014 at 10:54 am #358932Thanks 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>”;November 27, 2014 at 11:34 pm #359239Hi!
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 -
AuthorPosts
- The topic ‘Combo widget’ is closed to new replies.