Tagged: x
-
AuthorPosts
-
December 14, 2016 at 12:11 am #1292316
awesomeParticipantHi, I have created a child theme and moved the code for the Ethos post slider to the footer section.
I want the ethos post slider to be in fixed position at the bottom of the viewport upon load, and to stay there during scroll. When the footer comes up (where it is supposed to be located) I want the slider to slide up into its normal position at the top of the footer.
My site and login details are coming privately; site is under dev still.
Thanks!
December 14, 2016 at 12:12 am #1292317
awesomeParticipantThis reply has been marked as private.December 14, 2016 at 2:27 am #1292399
LelyModeratorHello There,
Would you mind giving us FTP credentials so we can check what you have so far on your child theme? I can’t see the carousel at the moment even though it is active.
December 14, 2016 at 10:29 am #1292930
awesomeParticipantThis reply has been marked as private.December 14, 2016 at 10:32 am #1292933
awesomeParticipantOne more thing about the post carousel: right now it lets us do ‘most commented’, ‘featured’, or ‘random’.
Isn’t there a way to make it load the latest posts?
Alternatively, do you know of a good way to batch edit featured posts?
thanks!
December 14, 2016 at 3:50 pm #1293361
RadModeratorHi there,
The slider fixed positioning and scroll effect is only possible with custom development. I tried it but it has conflicts with other scroll functionality, especially the revslider and navbar. But yes, it’s possible but a bit complicated. You may want to contact a developer that can focus on this customization.
About the carousel, setting featured posts by batch isn’t possible. And latest posts option isn’t included because posts slider are basically displayed in blog and archive pages where latest posts are already displayed. Displaying latest posts in the slider is redundant. But if you insist, you can edit this file \wp-content\themes\x\framework\views\ethos\_post-carousel.php
And replace this entire block,
switch ( $display ) { case 'most-commented' : $args = array( 'post_type' => 'post', 'posts_per_page' => $count, 'orderby' => 'comment_count', 'order' => 'DESC' ); break; case 'random' : $args = array( 'post_type' => 'post', 'posts_per_page' => $count, 'orderby' => 'rand' ); break; case 'featured' : $args = array( 'post_type' => 'post', 'posts_per_page' => $count, 'orderby' => 'date', 'meta_key' => '_x_ethos_post_carousel_display', 'meta_value' => 'on' ); break; }with this
$args = array( 'post_type' => 'post', 'posts_per_page' => $count, 'orderby' => 'date' );That should display the recent posts overriding other options.
Thanks!
December 14, 2016 at 5:02 pm #1293440
awesomeParticipantThat code is for the carousel, not the post slider at the top of the archives and blog pages, right?
I want to use it to help people find other articles to read, so while it is redundant on some pages, I will keep it there; however, I may decide to pull it off those pages.
QUESTION: If I set it to show ‘featured’ articles, and to display 8 articles, but I have 30 articles that are featured, what gets displayed? The latest 8, or a random 8? Would I just make the ‘orderby’ above to be ‘rand’?
Thanks!
December 14, 2016 at 10:09 pm #1293766
Rue NelModeratorHello There,
The code is for the carousel at the top of the page.
QUESTION: If I set it to show ‘featured’ articles, and to display 8 articles, but I have 30 articles that are featured, what gets displayed? The latest 8, or a random 8? Would I just make the ‘orderby’ above to be ‘rand’?
By default it should display the latest 8 featured articles. And if you have modified the code with the help of the code we have given in our previous reply, then it will now display the latest 8 articles regardless of what you have selected in the customizer.
Hope this explain it briefly.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1292316 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
