• The padding is set to 0 and I can’t figure out why the last few sentences are missing. What is the CSS code for the three content boxes under the section, Our Services to fix this problem?

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter iacino

    (@iacino)

    Why isn’t this code working to lengthen the excerpt and it should? I have it in the functions.php file.

    // replace parent function
    function bizlight_excerpt_length() {
    return esc_attr(50);
    }

    Hi iacino

    You need to paste those code in functions.php of child theme.
    You can create child theme manually or there are some plugins you can find to create one for you.

    Best Regards!!!

    Thread Starter iacino

    (@iacino)

    Yes, I have the functions.php in my child theme. Doesn’t make sense why this simple code would not work. tx.

    Thread Starter iacino

    (@iacino)

    In the index.php file, i found this:

    * Include the Post-Format-specific template for the content.
    * If you want to override this in a child theme, then include a file
    * called content-___.php (where ___ is the Post Format name) and that will be used instead.

    Should I be calling the function.php within my child a different name for it to work??

    Hi iacino

    I think you have created child theme in wrong way.
    Otherwise the code is working fine when i checked in locally.

    * Include the Post-Format-specific template for the content.
    * If you want to override this in a child theme, then include a file
    * called content-___.php (where ___ is the Post Format name) and that will be used instead.

    The above statement has nothing to do with this issue.
    Again try to create child theme from scratch I think you have done something wrong
    If you have done all correctly then it should definitely work.
    Report if you have problem creating child theme I will give you a full guide.

    Best Regards!!!

    Thread Starter iacino

    (@iacino)

    You may be right about this because i followed codex instructions up until a certain point. I saw this towards the bottom and was wondering if i need to add and where:

    require_once( get_stylesheet_directory() . ‘/my_included_file.php’ );

    Referencing / Including Files in Your Child Theme
    When you need to include files that reside within your child theme’s directory structure, you will use get_stylesheet_directory(). Because the parent template’s style.css is replaced by your child theme’s style.css, and your style.css resides in the root of your child theme’s subdirectory, get_stylesheet_directory() points to your child theme’s directory (not the parent theme’s directory).

    Here’s an example, using require_once, that shows how you can use get_stylesheet_directory when referencing a file stored within your child theme’s directory structure.
    require_once( get_stylesheet_directory() . ‘/my_included_file.php’ );

    Hi iacino

    To create child theme your just need two main files style.css and functions.php in a new folder outside main theme’s folder.
    Now in functions.php you need only below code to inherit parent style-sheet.

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }

    And in style.css the below code is sufficient:

    /*
    Theme Name: Bizlight Child
    Theme URI: https://evisionthemes.com/themes/bizlight
    Author: evisiontheme
    Author URI: https://evisionthemes.com/
    Template: bizlight
    Description: Bizlight theme is clean and elegant lightweight WordPress theme, adequate enough to create a standard site for any corporate house. Bizlight is basically designed for the normal WordPress users, in order to create a site quickly and efficiently. However, it has many competencies including responsive, bootstrap, HTML5, CSS3, retina ready, font awesome, google font, cross-browser compatibility, color control, layout control, logo upload, translation-ready, custom CSS field, etc. Documentation consists of several parts and shows you the entire process of setting up WordPress and Bizlight theme from scratch.Demo : https://demo.evisionthemes.com/bizlight-pro/ Documentation : https://doc.evisionthemes.com/bizlight/
    Version: 1.0.4
    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: bizlight
    Tags: light, white, blue, two-columns, right-sidebar, left-sidebar, custom-background, custom-colors, custom-menu, featured-images, post-formats, sticky-post, translation-ready, responsive-layout, theme-options, threaded-comments
    
    Normalizing styles have been helped along thanks to the fine work of
    Nicolas Gallagher and Jonathan Neal https://necolas.github.com/normalize.css/
    */

    Now activate child theme and edit your functions.php of this child theme.

    Best Regards!!!

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Missing last three rows of content box’ is closed to new replies.