Tagged: combo widget
-
AuthorPosts
-
October 18, 2016 at 8:07 pm #700821
Hello. Is there a way to make the Combo Widget show the “Recent” tab as default rather than the “Popular” tab?
October 18, 2016 at 8:20 pm #700826Hey 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,
VinayOctober 18, 2016 at 8:46 pm #700847Link below.
Actually would want to hide the Comments tav too as we are using Facebook comments.
October 18, 2016 at 8:52 pm #700850Hi!
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,
YigitOctober 18, 2016 at 9:42 pm #700888Nice. Works like a charm!
October 18, 2016 at 10:15 pm #700909Hi!
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 -
AuthorPosts
- The topic ‘Combo Widget: Recent Tab as default’ is closed to new replies.