Tagged: x
-
AuthorPosts
-
July 17, 2016 at 11:24 am #1090736
Pollito69ParticipantHello,
I installed Ethos 1 demo content hoping that I could edit it to re-create the look and feel of the Ethos 1. But it looks like this is not the case. There is no “Home” page or other pages installed after the demo installation that I can easily edit for my use. Please correct if I’m wrong?
Alternatively, please let me know what is the best way to delete all my Ethos 1 demo content and start over with clean Ethos theme>
Thanks
July 17, 2016 at 11:41 am #1090764
ThaiModeratorHi There,
You can try with this plugin: https://wordpress.org/plugins/wordpress-reset/.
Hope it helps 🙂
July 17, 2016 at 2:23 pm #1090883
Pollito69ParticipantThat worked. Thank you.
I already installed X Theme with Child Theme, and have selected Ethos stack in customizing.
How can I duplicate the “carousel slider top / X slider below menu” look of the Ethos 1 demo – specifically as it applies to the Ethos 1 homepage? Please see the attached screenshot of the sections I want to duplicate.
Please note that I only want to use the carousel and slider for pictures of the products that will be sold in my shop (I will be using Woocommerce).
Thank you.
July 17, 2016 at 7:48 pm #1091161
Rue NelModeratorHello There,
Thanks for the updates and the very detailed information. Since you want to display the products in the carousel and slider, you need to edit the template for both the carousel and slider. To do this, please do the following:
For the carousel:
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-CAROUSEL.PHP // ----------------------------------------------------------------------------- // Outputs the post carousel that appears at the top of the masthead. // ============================================================================= GLOBAL $post_carousel_entry_id; $post_carousel_entry_id = get_the_ID(); $is_enabled = x_get_option( 'x_ethos_post_carousel_enable' ) == '1'; $count = x_get_option( 'x_ethos_post_carousel_count' ); $display = x_get_option( 'x_ethos_post_carousel_display' ); switch ( $display ) { case 'most-commented' : $args = array( 'post_type' => 'product', 'posts_per_page' => $count, 'orderby' => 'comment_count', 'order' => 'DESC' ); break; case 'random' : $args = array( 'post_type' => 'product', 'posts_per_page' => $count, 'orderby' => 'rand' ); break; case 'featured' : $args = array( 'post_type' => 'product', 'posts_per_page' => $count, 'orderby' => 'date', 'meta_key' => '_x_ethos_post_carousel_display', 'meta_value' => 'on' ); break; } ?> <?php if ( $is_enabled ) : ?> <ul class="x-post-carousel unstyled"> <?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-post-carousel-item"> <?php x_ethos_entry_cover( 'post-carousel' ); ?> </li> <?php endwhile; ?> <?php endif; ?> <?php wp_reset_query(); ?> <script> jQuery(document).ready(function() { jQuery('.x-post-carousel').slick({ speed : 500, slide : 'li', slidesToShow : <?php echo x_get_option( 'x_ethos_post_carousel_display_count_extra_large' ); ?>, slidesToScroll : 1, rtl : <?php echo json_encode( is_rtl() ); ?>, responsive : [ { breakpoint : 1500, settings : { speed : 500, slide : 'li', slidesToShow : <?php echo x_get_option( 'x_ethos_post_carousel_display_count_large' ); ?> } }, { breakpoint : 1200, settings : { speed : 500, slide : 'li', slidesToShow : <?php echo x_get_option( 'x_ethos_post_carousel_display_count_medium' ); ?> } }, { breakpoint : 979, settings : { speed : 500, slide : 'li', slidesToShow : <?php echo x_get_option( 'x_ethos_post_carousel_display_count_small' ); ?> } }, { breakpoint : 550, settings : { speed : 500, slide : 'li', slidesToShow : <?php echo x_get_option( 'x_ethos_post_carousel_display_count_extra_small' ); ?> } } ] }); }); </script> </ul> <?php endif; ?>3] Save the file named as
_post-carousel.php
4] Upload this file to your server in the child theme’s folder
wp-content/themes/x-child/framework/views/ethos/For the slider, 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' => 'product', 'posts_per_page' => $count, 'orderby' => 'comment_count', 'order' => 'DESC', $info[1] => $info[2] ); break; case 'random' : $args = array( 'post_type' => 'product', 'posts_per_page' => $count, 'orderby' => 'rand', $info[1] => $info[2] ); break; case 'featured' : $args = array( 'post_type' => 'product', '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/ethos/Hope this helps.
July 18, 2016 at 10:53 pm #1092877
Pollito69ParticipantThanks, I will give it a try. Also, it seems that my browser is not always updating my changes in real time when I’m customizing. What is the best way to fix this? I have been using Chrome and Internet Explorer.
Thanks!
July 19, 2016 at 1:39 am #1093006
ChristopherModeratorHi there,
Please clear cache on your browser and click Ctrl+F5 to refresh the page.
Thanks.
July 19, 2016 at 10:07 pm #1094679
Pollito69ParticipantThis reply has been marked as private.July 20, 2016 at 1:52 am #1094871
ChristopherModeratorHi there,
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.
July 20, 2016 at 12:49 pm #1095657
Pollito69ParticipantThis reply has been marked as private.July 20, 2016 at 4:14 pm #1095915
FriechModeratorHi There,
Thanks for the credentials. Where did you upload the files created? I am not seeing _post-slider.php and _post-carousel.php on this directory /wp-content/themes/x-child/framework/views/ethos
Please clarify.
July 20, 2016 at 6:16 pm #1096064
Pollito69ParticipantThis reply has been marked as private.July 20, 2016 at 10:31 pm #1096401
FriechModeratorThis reply has been marked as private.July 20, 2016 at 11:13 pm #1096452
Pollito69ParticipantThis reply has been marked as private.July 21, 2016 at 12:27 am #1096510
RadModeratorHi there,
Your template codes are converted to different language or characters. Please check the attached file.
I uploaded the original template files, and your old templates are still there. But, it’s not taking effect. Are you sure that the provided FTP is pointing to the correct folder? I did some test and edited child theme functions.php and added a test content, then I viewed it through FTP and the changes I made isn’t there. Hence, FTP might be pointing on wrong folder.
Thanks!
July 21, 2016 at 6:45 am #1096882
Pollito69ParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1090736 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
