Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1329066
    TrulyBlissful
    Participant

    I am still trying to get my bearings with Ethos 1 demo. When I set up my site, I didn’t get the option of standard or expanded. My demo had no place holders like this page shows: https://community.theme.co/kb/demo-content/

    I think I must have done something wrong to begin with. Here is my site info:http://66.147.242.94/~trulybli/wp-admin/customize.php?url=http%3A%2F%2F66.147.242.94%2F%7Etrulybli%2F

    Do you need my log in or anything? I really need to get this website finished. And I’m struggling with every step.

    Thanks so much,
    Darie

    #1329200
    Jade
    Moderator

    Hi Darie,

    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

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1329306
    TrulyBlissful
    Participant
    This reply has been marked as private.
    #1329616
    Christopher
    Moderator

    Hi there,

    Post slider is being displayed on blog,archive and posts pages. Blog page in your site is ‘journal’ and it displays post slider.

    Thanks.

    #1329927
    TrulyBlissful
    Participant

    On the ethos demo home page (the sample page on your website), there’s a slider and the posts that are shown as part of a magazine look have excerpts. They also have cool features like the title is over the image, etc. Why can’t I get that to be on my homepage?

    #1330333
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! When I checked your site, I am seeing this; http://prntscr.com/dvr2oa
    Please check your site so that we can log in.

    Are you using Ethos 1 demo content? Please make sure that the Filter Index is turned “Off”. You can check it Appearance > Customize > Ethos > Blog Options. Enabling the filterable index will bypass the standard output of your blog page, allowing you to specify categories to highlight. Upon selecting this option, a text input will appear to enter in the IDs of the categories you would like to showcase. This input accepts a list of numeric IDs separated by a comma (e.g. 14, 1, 817).

    Hope this helps.

    #1334273
    TrulyBlissful
    Participant
    This reply has been marked as private.
    #1334616
    Paul R
    Moderator

    Hi,

    I was able to fix the syntax error, you may now activate x child theme.

    Thanks

    #1335783
    TrulyBlissful
    Participant

    Thanks for fixing the error.

    On the ethos demo home page (the sample page on your website), there’s a slide that I can’t get to work. Also the posts have excerpts, which I can’t get to work. They also have cool features like the title is over the image in a translucent box, etc. Why can’t I get that to be on my homepage?

    #1336164
    Rupok
    Member

    Hi there,

    Thanks for writing back. It seems you are referring Post Carousel or Post Slider and both can be set from Customize > Ethos. Let us know if you can’t set this from there.

    Cheers!

    #1338597
    TrulyBlissful
    Participant

    I need excerpts to show on from recent posts on the home page. How do I enable that?

    #1338850
    Jade
    Moderator

    Hi there,

    Please add this in child theme’s functions.php file :

    // =============================================================================
    function x_shortcode_recent_posts_v2code( $atts ) {
      extract( shortcode_atts( array(
        'id'          => '',
        'class'       => '',
        'style'       => '',
        'type'        => '',
        'count'       => '',
        'category'    => '',
        'enable_excerpt' => '',
        'offset'      => '',
        'orientation' => '',
        'no_image'    => '',
        'fade'        => ''
      ), $atts ) );
    
      $id            = ( $id          != ''          ) ? 'id="' . esc_attr( $id ) . '"' : '';
      $class         = ( $class       != ''          ) ? 'x-recent-posts cf ' . esc_attr( $class ) : 'x-recent-posts cf';
      $style         = ( $style       != ''          ) ? 'style="' . $style . '"' : '';
      $type          = ( $type        == 'portfolio' ) ? 'x-portfolio' : 'post';
      $count         = ( $count       != ''          ) ? $count : 3;
      $category      = ( $category    != ''          ) ? $category : '';
      $category_type = ( $type        == 'post'      ) ? 'category_name' : 'portfolio-category';
      $offset        = ( $offset      != ''          ) ? $offset : 0;
      $orientation   = ( $orientation != ''          ) ? ' ' . $orientation : ' horizontal';
      $no_image      = ( $no_image    == 'true'      ) ? $no_image : '';
      $fade          = ( $fade        == 'true'      ) ? $fade : 'false';
      $enable_excerpt = ( $enable_excerpt == 'true'      ) ? true : false;
    
      $output = "<div {$id} class=\"{$class}{$orientation}\" {$style} data-fade=\"{$fade}\">";
    
        $q = new WP_Query( array(
          'orderby'          => 'date',
          'post_type'        => "{$type}",
          'posts_per_page'   => "{$count}",
          'offset'           => "{$offset}",
          "{$category_type}" => "{$category}"
        ) );
    
        if ( $q->have_posts() ) : while ( $q->have_posts() ) : $q->the_post();
    
          if ( $no_image == 'true' ) {
            $image_output       = '';
            $image_output_class = 'no-image';
          } else {
            $image_output       = '<div class="x-recent-posts-img">' . get_the_post_thumbnail( get_the_ID(), 'entry-' . get_theme_mod( 'x_stack' ) . '-cropped', NULL ) . '</div>';
            $image_output_class = 'with-image';
          }
    
          $output .= '<a class="x-recent-post' . $count . ' ' . $image_output_class . '" href="' . get_permalink( get_the_ID() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ) . '">'
                     . '<article id="post-' . get_the_ID() . '" class="' . implode( ' ', get_post_class() ) . '">'
                       . '<div class="entry-wrap">'
                         . $image_output
                         . '<div class="x-recent-posts-content">'
                           . '<h3 class="h-recent-posts">' . get_the_title() . '</h3>'
                           . '<span class="x-recent-posts-date">' . get_the_date() . '</span>'
                           . ( $enable_excerpt ? '<span class="x-recent-posts-excerpt">' . strip_tags( get_the_excerpt() ) . '</span>' : '' )
                           .'<div>' . __( 'Read More', '__x__' ) .'</div>'
                         . '</div>'
                       . '</div>'
                     . '</article>'
                   . '</a>';
    
        endwhile; endif; wp_reset_postdata();
      
      $output .= '</div>';
    
      return $output;
    }
    
    add_action('wp_head', 'change_recent_posts_to_v2');
    
    function change_recent_posts_to_v2() {
      remove_shortcode( 'x_recent_posts' );
      add_shortcode( 'x_recent_posts', 'x_shortcode_recent_posts_v2code' );
    }

    Then add following shortcode to your page :

    [x_recent_posts type="post" enable_excerpt="true" count="3" orientation="horizontal"]

    Hope that helps.

    #1339940
    TrulyBlissful
    Participant
    This reply has been marked as private.
    #1340178
    Christopher
    Moderator

    Hi there,

    I can’t access your sit, it show 500 error.
    Please contact your host provider.

    Thanks.

    #1340558
    TrulyBlissful
    Participant
    This reply has been marked as private.
  • <script> jQuery(function($){ $("#no-reply-1329066 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>