Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1158979
    vojtechzikmund
    Participant

    Hello there,

    I have set up my blog, but on any of my categories pages and search I see only titles without pictures. Is there any solution to show it exactly how it is on the blog page itself?

    #1158980
    vojtechzikmund
    Participant
    This reply has been marked as private.
    #1159308
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Most of you blog posts has an image yet you did not add a feature image. This is the reason why there is no feature image being displayed on Category and Search page. Please edit each of your blog post and insert a feature image instead to resolve this issue.

    Add a featured image

    https://www.youtube.com/watch?v=cTCywimz2qI

    Hope this helps.

    #1159340
    vojtechzikmund
    Participant
    This reply has been marked as private.
    #1159415
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! The featured images is the only way of displaying the images in X. Unless other wise you want to display the full contents instead of the excerpts in category and search pages, then your images will be displayed. If that is the case, since you have your child theme active and ready, 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/GLOBAL/_CONTENT.PHP
    // -----------------------------------------------------------------------------
    // Display of the_excerpt() or the_content() for various entries.
    // =============================================================================
    
    $stack                     = x_get_stack();
    $is_full_post_content_blog = is_home() && x_get_option( 'x_blog_enable_full_post_content' ) == '1';
    
    ?>
    
    <?php
    
    if ( is_singular() || $is_full_post_content_blog || is_category() || is_search() ) :
      x_get_view( 'global', '_content', 'the-content' );
      if ( $stack == 'renew' ) :
        x_get_view( 'renew', '_content', 'post-footer' );
      endif;
    else :
      x_get_view( 'global', '_content', 'the-excerpt' );
    endif;
    
    ?>

    3] Save the file named as _content.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/global/

    We would loved to know if this has work for you. Thank you.

    #1159542
    vojtechzikmund
    Participant
    This reply has been marked as private.
    #1159622
    Rad
    Moderator

    Hi there,

    Would you mind providing your _content.php? There is nothing on line 10 from the above code. Have you done some customization to initially provided above code?

    You may also provide your FTP login credentials in private reply. It’s easier to check it directly 🙂

    Thanks!

    #1159736
    vojtechzikmund
    Participant
    This reply has been marked as private.
    #1160128
    Rue Nel
    Moderator

    Hello There,

    The password seems incorrect. Please double check it for us. And by the way, you should make sure that you have copied correctly exactly the same code word for word, character per character. One missed quote could lead to an error.

    Please let us know how it goes.

    #1160545
    vojtechzikmund
    Participant
    This reply has been marked as private.
    #1160816
    Rad
    Moderator

    Hi there,

    I checked and it’s working on those categories. Would you mind providing a screenshot of what you’re getting? And please clear your browser cache before testing.

    Thanks!

    #1160817
    vojtechzikmund
    Participant
    This reply has been marked as private.
    #1161024
    Lely
    Moderator

    Glad it is working now.

    Thank you for updating us.

    Cheers!

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