Control # of Characters Displayed on Home Blog Posts

Discussion in 'Smartbooking-Appointment Booking WordPress Theme.' started by dmedia, Aug 11, 2016.

  1. dmedia

    dmedia Member

    Joined:
    Dec 6, 2013
    Messages:
    164
    Likes Received:
    4
    Hi - Is it possible to control the amount of text or number of characters displayed on the Home page blog posts?

    Ideally I want to add a "more" tag to my blog posts. Everything above the "more" tag would display on the Home page. Everything below would not display on Home but will be seen on the blog post itself.

    If not possible to do this with "more" tag, is it at least possible to display more characters or more content? Right now the blog posts on Home are not displaying enough of the content. Need to display 2-3 lines of content.

    MDXfreight.com

    You will have to login to view.
     
  2. priya

    priya Guest

    Hi,

    Greetings from InkThemes!

    Please explain your issue with some edited screenshot so that I can assist you accordingly..

    Looking forward to your reply.

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
  3. dmedia

    dmedia Member

    Joined:
    Dec 6, 2013
    Messages:
    164
    Likes Received:
    4
    Thank you. See attached screen shot.
     

    Attached Files:

  4. priya

    priya Guest

    Hi,

    To increase blog text limit,

    Please follow the screenshot given below.

    increase_blog_text_limit.png

    To add read more link... please follow the screenshot given below.

    add_read_more_blog.png

    Code is as follow..
    Code:
    <a href="#">Read more</a>
    For your information, I am using "WP-Editor" plugin to edit files.

    You can also download and use it from the link https://wordpress.org/plugins/wp-editor/.

    After activating this plugin, you will get the same screen as shown in the screenshot.

    Hope it will resolve your issue

    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
  5. dmedia

    dmedia Member

    Joined:
    Dec 6, 2013
    Messages:
    164
    Likes Received:
    4
    I don't think it is front-page.php that you want me to edit. All that is found in front-page.php is this:


    <?php
    /**
    * The main template file.
    *
    * This is the most generic template file in a WordPress theme
    * and one of the two required files for a theme (the other being style.css).
    * It is used to display a page when nothing more specific matches a query.
    * E.g., it puts together the home page when no home.php file exists.
    * Learn more: http://codex.wordpress.org/Template_Hierarchy
    *
    * @package smartbooking
    */
    get_header();
    ?>

    <!-- Slider Starts Here -->
    <?php get_template_part('templates/templates', 'slider'); ?>
    <!-- Slider Ends Here -->

    <!-- Smartbooking booking form -->
    <div class="container">
    <div class="row">
    <?php
    if (is_active_sidebar('booking-form-widget-area')):
    dynamic_sidebar('booking-form-widget-area');
    endif;
    ?>
    </div>
    </div>
    <!-- Smartbooking booking form ends -->

    <!-- Crousel Starts Here -->
    <?php smartbooking_seperator(); ?>
    <?php get_template_part('templates/templates', 'crousel'); ?>
    <!-- Crousel Ends Here -->

    <!-- Map Starts Here -->
    <?php smartbooking_seperator() ?>
    <?php get_template_part('templates/templates', 'maparea'); ?>
    <!-- *** Maps Ends Here **** -->

    <!-- Testimonial Starts Here -->
    <?php smartbooking_seperator() ?>
    <?php get_template_part('templates/templates', 'testimonial'); ?>
    <!-- *** Testimonial Ends Here **** -->

    <?php get_footer(); ?>



    I know there must be another php file you screenshotted but I can't figure out which one.
     
  6. priya

    priya Guest

    Hello,

    Sorry for my previous screenshot...

    You will get that code in template-carousel.php file as shown in below screenshot..

    increase_blog_text_limit.png

    and follow the second (above) screenshot of my previous post in same file...i.e. template-carousel.php

    Hope it will resolve your issue

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
  7. dmedia

    dmedia Member

    Joined:
    Dec 6, 2013
    Messages:
    164
    Likes Received:
    4
    Thank you! I did edit the file and it allowed me to display about 50 characters. But no more. When I go up to 100 or even 55, only 50 display with the (...) to show that there's more. What if I want to display the entire post? Is that possible?

    Also, is it possible to only show posts assigned to a certain post category, regardless of when the post is created (old or new). If that's not possible, how about only showing OLD posts on Home but new posts on the blogroll?

    What I am trying to do is keep the same 6 posts on the Home page, regardless of any new articles posted. Conversely in the blog, if we make more posts, we want those newer posts to show in blogroll but NOT on Home.
     
  8. priya

    priya Guest

    Hello,

    To show full blog content, please follow the screenshot given below.

    full_blog_content.png

    And to show old post, screenshot is given below..

    to_show_old_blog_post.png

    Hope it will resolve your issue

    Thanks & Regards!
    Priyanka
    InkThemes.com
     

Share This Page