Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1292316
    awesome
    Participant

    Hi, 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!

    #1292317
    awesome
    Participant
    This reply has been marked as private.
    #1292399
    Lely
    Moderator

    Hello 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.

    #1292930
    awesome
    Participant
    This reply has been marked as private.
    #1292933
    awesome
    Participant

    One 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!

    #1293361
    Rad
    Moderator

    Hi 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!

    #1293440
    awesome
    Participant

    That 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!

    #1293766
    Rue Nel
    Moderator

    Hello 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.

  • <script> jQuery(function($){ $("#no-reply-1292316 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>