Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Show Entire BlogPosts in www.site.com/blog

    • 10 years ago palmerstoneroad
      Participant

      Expired

      Hi,

      Is there a way to show the entire blogposts in www.site.com/blog instead of an excerpt of 3 lines of each blogposts?

      I am not able to find the option in Specular settings.

      thanks!

    • 10 years ago Mirela
      Participant

      Hello,

      You will need to edit theme files for that. Please go to file includes\view\blog\loop-grid.php, and find these lines(168):

      <div class="text">
                              <?php   if($post_format == 'video' || $post_format == 'audio')
                                          echo codeless_text_limit(get_the_content(), 20);
                                      else
                                          echo get_the_excerpt();    
                              ?>
                          </div>

      Replace with these:

      <div class="text">
                              <?php   if($post_format == 'video' || $post_format == 'audio')
                                          echo codeless_text_limit(get_the_content(), 20);
                                      else
                                          echo codeless_text_limit(get_the_content(), 999999);    
                              ?>
                          </div>

      Best regards!

    • 10 years ago palmerstoneroad
      Participant

      Expired

      Hi Mihaila,

      I have tried replacing the code as you suggested but nothing happen. there is still an excerpt for every blogpost, 3 lines each.

      Let me know if you want to know the blog URL for my site so you can have a look.

      thanks!

    • 10 years ago Ruco
      Keymaster

      Hello,

      What blog style have you selected? If you have simple blog style then you must edit the file loop-index.php. Find these lines:

      <div class="text">
                              <?php   
                                  if(is_single()){
                                      do_shortcode(the_content());
                                  }else{
                                      if($post_format == 'video' || $post_format == 'audio')
                                          echo do_shortcode(codeless_text_limit(get_the_content(), 60));
                                      else
                                          echo do_shortcode(get_the_excerpt());
                                  }
                                          
                              ?>
                          </div>

      and replace with:

      <div class="text">
                              <?php   
                                  if(is_single()){
                                      do_shortcode(the_content());
                                  }else{
                                      if($post_format == 'video' || $post_format == 'audio')
                                          echo do_shortcode(codeless_text_limit(get_the_content(), 60));
                                      else
                                          echo do_shortcode(get_the_content());
                                  }
                                          
                              ?>
                          </div>

      Best regards!

      • This reply was modified 10 years ago by Ruco.
    • 10 years ago palmerstoneroad
      Participant

      Expired

      Hi Ruco,

      thanks for your message.

      I have tried your suggestion and it works. Blog posts lose the formatting in the blog index though so I think I’ll switch to the previous set up, with only some excerpt lines for each blogpost.

      About that:

      – do you know how can I have 5 lines instead of 3 for each blogpost in the blog index?

      – I need the button ‘read more’ localized in Italian. Can you suggest how to proceed?

      thanks!

    • 10 years ago Mirela
      Participant

      Hello,

      To allow more words to show, please edit the above code to this:

      <div class="text">
               <?php   
                    if(is_single()){
                           do_shortcode(the_content());
                                  }else{
                                      if($post_format == 'video' || $post_format == 'audio')
                                      echo do_shortcode(codeless_text_limit(get_the_content(), 60));
                                      else
                                          echo do_shortcode(codeless_text_limit(get_the_excerpt(), 60));
                                  }
                                          
                              ?>
                          </div>

      I the same file, find this line:
      <a href="<?php echo get_permalink() ?>" class="btn-bt <?php echo esc_attr($cl_redata['overall_button_style'][0]) ?>"><span><?php _e('Read More', 'codeless') ?></span><i class="moon-arrow-right-5"></i></a>
      Translate the “Read more” here.

      Best regards!

Viewing 5 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password