Tagged: x
-
AuthorPosts
-
October 26, 2016 at 9:13 pm #1232498
jhm707ParticipantHi,
I’m taking my site live on Monday, and as I try to set it up I am having trouble changing the Post Carousel Display and Post Slider Display settings on published posts. If I click the button to add a post to the slider, it won’t let me remove it later.
Similarly, if the first time I publish a post it is not on the slider, I cannot seem to add it later.
Thank you.
October 26, 2016 at 11:31 pm #1232620
Prasant RaiModeratorHello There,
Thanks for writing in!
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
October 27, 2016 at 12:38 am #1232676
jhm707ParticipantThis reply has been marked as private.October 27, 2016 at 1:30 am #1232714
Rue NelModeratorHello There,
Thanks for providing the information. Regretfully it is not working for us. It seems that username is invalid. Please double check it. Meanwhile, please take not that the post carousel and post slider will allow you to showcase your posts in various formats like the Most Commented, Random and Featured. If “Featured” is selected, you can choose which posts you would like to appear in this location in the post meta options. For more details about this setting in the customizer, please check this out: https://community.theme.co/kb/customizer-ethos/
Hope this helps.
October 27, 2016 at 12:54 pm #1233528
jhm707ParticipantThis reply has been marked as private.October 27, 2016 at 5:04 pm #1233859
JadeModeratorHi there,
The post setting for the carousel items are set in the Post Carousel Display. As I have checked Garden Flyover post setting was enabled that’s why it was displaying. I have uncheck it so that you could see the result.
October 27, 2016 at 10:23 pm #1234203
jhm707ParticipantHi,
I think I was confusing.
Please note, the Carousel seems fine. The Slider is also turned off (in your example it is also) but as you can see, the post still shows up on the Slider even when it is not selected.
See attachment, thanks so much.
October 27, 2016 at 10:24 pm #1234204
jhm707ParticipantThis reply has been marked as private.October 28, 2016 at 2:20 am #1234371
LelyModeratorHi There,
Thank you for the screenshots. I think there is a misunderstanding here.
To display the Slider on Blog Index page, we can go to Appearance > Customize > Ethos > Post Slider for Blog. This is currently set to ON. Set it to off if you want to hide the slider. If Post Slider for Blog is set to ON and you have chosen Featured under Display option, we do check those setting Post Slider Display – Blog. It enables that specific post to be included on the slider.Hope this helps.
October 28, 2016 at 10:07 am #1234850
jhm707ParticipantYou are not understanding the error.
The posts are NOT chosen in Post Slider Display- Blog. But they ARE showing up on the post slider display. Please look at the image I sent you again. The post, “Garden Flyover” is NOT selected for Post Slider Display-Blog. But it IS showing up in the Post Slider. I have turned it off, it should not be showing, but it is.
How do I deselect a post so that I can REMOVE it from the Post Slider Display? Unchecking the button is not working.
I know the slider is showing, that is OK. But posts that were selected for the Post Slider Display before I don’t want to feature anymore. When I deselect them, they stay on the Post Slider Display.
October 28, 2016 at 8:17 pm #1235482
Rue NelModeratorHello There,
The current setting will display the most commented posts and then by date. If you want to display selected post items in the slider, I would highly recommend that you select to display “featured” and assign some of the featured posts.
Do you want to display the recent post items instead? If this is the case, please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file<?php // ============================================================================= // VIEWS/ETHOS/_POST-SLIDER.PHP // ----------------------------------------------------------------------------- // Outputs the post slider that appears at the top of the blog. // ============================================================================= $is_blog = is_home(); $is_archive = is_category() || is_tag(); if ( $is_blog || $is_archive ) : if ( $is_blog ) { $info = array( 'blog', NULL, NULL, '_x_ethos_post_slider_blog_display' ); } elseif ( $is_archive ) { $type = ( is_category() ) ? 'cat' : 'tag_id'; $info = array( 'archive', $type, get_queried_object_id(), '_x_ethos_post_slider_archives_display' ); } $slider_enabled = x_get_option( 'x_ethos_post_slider_' . $info[0] . '_enable' ) == '1'; $count = x_get_option( 'x_ethos_post_slider_' . $info[0] . '_count' ); $display = x_get_option( 'x_ethos_post_slider_' . $info[0] . '_display' ); $blog_slider_is_enabled = $slider_enabled && $is_blog; $archive_slider_is_enabled = $slider_enabled && $is_archive; $is_enabled = $blog_slider_is_enabled || $archive_slider_is_enabled; switch ( $display ) { case 'most-commented' : $args = array( 'post_type' => 'post', 'posts_per_page' => $count, 'orderby' => 'date', 'order' => 'DESC', $info[1] => $info[2] ); break; case 'random' : $args = array( 'post_type' => 'post', 'posts_per_page' => $count, 'orderby' => 'rand', $info[1] => $info[2] ); break; case 'featured' : $args = array( 'post_type' => 'post', 'posts_per_page' => $count, 'orderby' => 'date', 'meta_key' => $info[3], 'meta_value' => 'on', 'ignore_sticky_posts' => true ); break; } ?> <?php if ( $is_enabled ) : ?> <div class="x-flexslider x-post-slider"> <ul class="x-slides"> <?php $wp_query = new WP_Query( $args ); ?> <?php if ( $wp_query->have_posts() ) : ?> <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?> <li class="x-slide"> <article <?php post_class( 'x-post-slider-entry' ); ?> style="<?php echo x_ethos_entry_cover_background_image_style(); ?>"> <a href="<?php the_permalink(); ?>"> <div class="cover"> <div class="middle"> <span class="featured-meta"><?php echo x_ethos_post_categories(); ?> / <?php echo get_the_date( 'F j, Y' ); ?></span> <h2 class="h-featured"><span><?php x_the_alternate_title(); ?></span></h2> <span class="featured-view"><?php _e( 'View Post', '__x__' ); ?></span> </div> </div> </a> </article> </li> <?php endwhile; ?> <?php endif; ?> <?php wp_reset_query(); ?> </ul> </div> <script> jQuery(window).load(function() { jQuery('.x-post-slider').flexslider({ controlNav : false, selector : '.x-slides > li', prevText : '<i class="x-icon-chevron-left" data-x-icon=""></i>', nextText : '<i class="x-icon-chevron-right" data-x-icon=""></i>', animation : 'fade', smoothHeight : true, slideshow : true }); }); </script> <?php endif; ?> <?php endif; ?>3] Save the file named as
_post-slider.php
4] Upload this file to your server in the child theme’s folder
wp-content/themes/x-child/framework/views/ethosHope this helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1232498 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
