• 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 15 replies - 1 through 15 (of 22 total)
  • More info about you theme, will be more useful, like what theme are you using.
    Also maybe content boxes have fixed height

    Thread Starter iacino

    (@iacino)

    I posted under Bizlight theme. If you think it’s because the boxes have a fixed height, what is the CSS for that? I’ve tried everything, tx.

    Hi Lacino,
    Would it be possible to give us URL of your site. It would be easier to see and resolve the issue.
    Thanks
    Cheers
    TR

    Thread Starter iacino

    (@iacino)

    Hi Lacino,
    Im not sure, but if you mean the three widgets below the CTA picture, it should be this way. This is excerpt of your content.
    When you click on it it goes to full reading.

    For more detailed answer, contact Theme author.
    Cheers
    TR

    Thread Starter iacino

    (@iacino)

    I don’t want that section clickable and will not be creating pages for them.

    Hi iacino

    1. Right now it is showing 30 words as service content when you select that page.
    2. If you want full content to show or some more words to be shown you need to create child theme for this.
    3 After creating child theme you need to copy and paste following code in child theme functions.php file.

    function bizlight_home_service_array(  ){
    
            $bizlight_home_service_contents_array = array();
    
            $bizlight_home_service_contents_array[0]['bizlight-home-service-title'] = __('LOVELY DESIGN', 'bizlight');
            $bizlight_home_service_contents_array[0]['bizlight-home-service-content'] = __("The set doesn't moved. Deep don't fru it fowl gathering heaven days moving creeping under from i air. Set it fifth Meat was darkness. every bring in it.", 'bizlight');
            $bizlight_home_service_contents_array[0]['bizlight-home-service-link'] = '#';
            $bizlight_home_service_contents_array[0]['bizlight-home-service-icon'] = 'fa-desktop';
    
            $bizlight_home_service_contents_array[1]['bizlight-home-service-title'] = __('STYLIES PHOTOGRAPY', 'bizlight');
            $bizlight_home_service_contents_array[1]['bizlight-home-service-content'] = __("The set doesn't moved. Deep don't fru it fowl gathering heaven days moving creeping under from i air. Set it fifth Meat was darkness. every bring in it.", 'bizlight');
            $bizlight_home_service_contents_array[1]['bizlight-home-service-link'] = '#';
            $bizlight_home_service_contents_array[1]['bizlight-home-service-icon'] = 'fa-camera-retro';
    
            $bizlight_home_service_contents_array[2]['bizlight-home-service-title'] = __('CREATIVE AGENCY', 'bizlight');
            $bizlight_home_service_contents_array[2]['bizlight-home-service-content'] = __("The set doesn't moved. Deep don't fru it fowl gathering heaven days moving creeping under from i air. Set it fifth Meat was darkness. every bring in it.", 'bizlight');
            $bizlight_home_service_contents_array[2]['bizlight-home-service-link'] = '#';
            $bizlight_home_service_contents_array[2]['bizlight-home-service-icon'] = 'fa-rocket';
    
            $bizlight_icons_arrays = array();
            $bizlight_home_service_args = array();
    
            $repeated = array('bizlight-home-service-page-icon','bizlight-home-service-pages-ids');
    
            $bizlight_home_service_posts = bizlight_get_repeated_all_value(3, $repeated);
            $bizlight_home_service_posts_ids = array();
            if( null != $bizlight_home_service_posts ) {
                foreach( $bizlight_home_service_posts as $bizlight_home_service_post ) {
                    if( isset($bizlight_home_service_post['bizlight-home-service-pages-ids']) && 0 != $bizlight_home_service_post['bizlight-home-service-pages-ids'] ){
                        $bizlight_home_service_posts_ids[] = $bizlight_home_service_post['bizlight-home-service-pages-ids'];
                        if( isset( $bizlight_home_service_post['bizlight-home-service-page-icon'] )){
                            $bizlight_home_service_page_icon = $bizlight_home_service_post['bizlight-home-service-page-icon'];
                        }
                        else{
                            $bizlight_home_service_page_icon =' fa-desktop';
                        }
                        $bizlight_icons_arrays[] = $bizlight_home_service_page_icon;
                    }
                }
                if( !empty( $bizlight_home_service_posts_ids )){
                    $bizlight_home_service_args =    array(
                        'post_type' => 'page',
                        'post__in' => $bizlight_home_service_posts_ids,
                        'posts_per_page' => 3,
                        'orderby' => 'post__in'
                    );
                }
            }
            // the query
            if( !empty( $bizlight_home_service_args )){
                $bizlight_home_service_contents_array = array(); /*again empty array*/
                $bizlight_home_service_post_query = new WP_Query( $bizlight_home_service_args );
                if ( $bizlight_home_service_post_query->have_posts() ) :
                    $i = 0;
                    while ( $bizlight_home_service_post_query->have_posts() ) : $bizlight_home_service_post_query->the_post();
                        $bizlight_home_service_contents_array[$i]['bizlight-home-service-title'] = get_the_title();
                        $bizlight_home_service_contents_array[$i]['bizlight-home-service-content'] = bizlight_words_count( 30 ,get_the_content());
                        $bizlight_home_service_contents_array[$i]['bizlight-home-service-link'] = get_permalink();
                        if(isset( $bizlight_icons_arrays[$i] )){
                            $bizlight_home_service_contents_array[$i]['bizlight-home-service-icon'] = $bizlight_icons_arrays[$i];
                        }
                        else{
                            $bizlight_home_service_contents_array[$i]['bizlight-home-service-icon'] = 'fa-desktop';
                        }
                        $i++;
                    endwhile;
                    wp_reset_postdata();
                endif;
            }
            return $bizlight_home_service_contents_array;
        }

    4. Now in above code you will find $bizlight_home_service_contents_array[$i][‘bizlight-home-service-content’] = bizlight_words_count( 30 ,get_the_content()); line and you can see 30 words as content.
    5. Now change this number as you want.
    6. Now activate that child theme and you should be done.

    Note: Please customize files of child theme, so your changes will not overwrite on theme update.
    If you are still having trouble with that you can report.

    Best Regards!!

    Thread Starter iacino

    (@iacino)

    I did and all the code was showing at the top of the website page, so i removed it. I didn’t see any of this code in the parent functions.php file. I did a keyword search of 30 ,get_the_content()); on the entire website and it didn’t show up.

    Lacino,
    Read it carefully. You need to add above code to child theme function.php file that you create at first.
    Part of that code is line mentioned. There you change 30 to any you want.
    Cheers
    TR

    Thread Starter iacino

    (@iacino)

    I read it twice and still had problem of code showing up on website up top. The existing function.php file that I created in child theme has the code below so I placed it underneath. What am I doing wrong?

    <?php
    function theme_enqueue_styles() {

    $parent_style = ‘parent-style’;

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style )
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    ?>

    Hi iacino

    Just try adding only below code in child theme’s functions.php file.

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }
    
    function bizlight_home_service_array(  ){
    
            $bizlight_home_service_contents_array = array();
    
            $bizlight_home_service_contents_array[0]['bizlight-home-service-title'] = __('LOVELY DESIGN', 'bizlight');
            $bizlight_home_service_contents_array[0]['bizlight-home-service-content'] = __("The set doesn't moved. Deep don't fru it fowl gathering heaven days moving creeping under from i air. Set it fifth Meat was darkness. every bring in it.", 'bizlight');
            $bizlight_home_service_contents_array[0]['bizlight-home-service-link'] = '#';
            $bizlight_home_service_contents_array[0]['bizlight-home-service-icon'] = 'fa-desktop';
    
            $bizlight_home_service_contents_array[1]['bizlight-home-service-title'] = __('STYLIES PHOTOGRAPY', 'bizlight');
            $bizlight_home_service_contents_array[1]['bizlight-home-service-content'] = __("The set doesn't moved. Deep don't fru it fowl gathering heaven days moving creeping under from i air. Set it fifth Meat was darkness. every bring in it.", 'bizlight');
            $bizlight_home_service_contents_array[1]['bizlight-home-service-link'] = '#';
            $bizlight_home_service_contents_array[1]['bizlight-home-service-icon'] = 'fa-camera-retro';
    
            $bizlight_home_service_contents_array[2]['bizlight-home-service-title'] = __('CREATIVE AGENCY', 'bizlight');
            $bizlight_home_service_contents_array[2]['bizlight-home-service-content'] = __("The set doesn't moved. Deep don't fru it fowl gathering heaven days moving creeping under from i air. Set it fifth Meat was darkness. every bring in it.", 'bizlight');
            $bizlight_home_service_contents_array[2]['bizlight-home-service-link'] = '#';
            $bizlight_home_service_contents_array[2]['bizlight-home-service-icon'] = 'fa-rocket';
    
            $bizlight_icons_arrays = array();
            $bizlight_home_service_args = array();
    
            $repeated = array('bizlight-home-service-page-icon','bizlight-home-service-pages-ids');
    
            $bizlight_home_service_posts = bizlight_get_repeated_all_value(3, $repeated);
            $bizlight_home_service_posts_ids = array();
            if( null != $bizlight_home_service_posts ) {
                foreach( $bizlight_home_service_posts as $bizlight_home_service_post ) {
                    if( isset($bizlight_home_service_post['bizlight-home-service-pages-ids']) && 0 != $bizlight_home_service_post['bizlight-home-service-pages-ids'] ){
                        $bizlight_home_service_posts_ids[] = $bizlight_home_service_post['bizlight-home-service-pages-ids'];
                        if( isset( $bizlight_home_service_post['bizlight-home-service-page-icon'] )){
                            $bizlight_home_service_page_icon = $bizlight_home_service_post['bizlight-home-service-page-icon'];
                        }
                        else{
                            $bizlight_home_service_page_icon =' fa-desktop';
                        }
                        $bizlight_icons_arrays[] = $bizlight_home_service_page_icon;
                    }
                }
                if( !empty( $bizlight_home_service_posts_ids )){
                    $bizlight_home_service_args =    array(
                        'post_type' => 'page',
                        'post__in' => $bizlight_home_service_posts_ids,
                        'posts_per_page' => 3,
                        'orderby' => 'post__in'
                    );
                }
            }
            // the query
            if( !empty( $bizlight_home_service_args )){
                $bizlight_home_service_contents_array = array(); /*again empty array*/
                $bizlight_home_service_post_query = new WP_Query( $bizlight_home_service_args );
                if ( $bizlight_home_service_post_query->have_posts() ) :
                    $i = 0;
                    while ( $bizlight_home_service_post_query->have_posts() ) : $bizlight_home_service_post_query->the_post();
                        $bizlight_home_service_contents_array[$i]['bizlight-home-service-title'] = get_the_title();
                        $bizlight_home_service_contents_array[$i]['bizlight-home-service-content'] = bizlight_words_count( 30 ,get_the_content());
                        $bizlight_home_service_contents_array[$i]['bizlight-home-service-link'] = get_permalink();
                        if(isset( $bizlight_icons_arrays[$i] )){
                            $bizlight_home_service_contents_array[$i]['bizlight-home-service-icon'] = $bizlight_icons_arrays[$i];
                        }
                        else{
                            $bizlight_home_service_contents_array[$i]['bizlight-home-service-icon'] = 'fa-desktop';
                        }
                        $i++;
                    endwhile;
                    wp_reset_postdata();
                endif;
            }
            return $bizlight_home_service_contents_array;
        }

    Now in above code you will find $bizlight_home_service_contents_array[$i][‘bizlight-home-service-content’] = bizlight_words_count( 30 ,get_the_content()); line and you can see 30 words as content.
    Now change this number as you want.
    Now activate that child theme and you should be done.

    Best Regards!!

    Thread Starter iacino

    (@iacino)

    Same thing is happening. See site:
    https://mouseoverdesigns.com/

    Yes, it’s odd. I see the code as a whole is displaying on the browser. Can you please remove that code again from where you have posted ?

    Let’s begin in a clean way and it’s pretty much messed up so can you please let me know what next we can help you with ?

    Thread Starter iacino

    (@iacino)

    Why does this code look completely different than the functions.php file in parent theme?

    Maybe there is an extra bracket or space somewhere?

    I wish WordPress wouldn’t generate shortcodes. It makes it complicated to change code.

    Hi @iacino

    To be specific this feature is not available on the free version and is only available on the pro version of the theme. Check out this link to find more awesome features of the pro version here: https://themepalace.com/shop/wordpress-themes/bizlight-pro/

    Alternatively, you can do this by making Child Theme as mentioned in earlier replies.

    Hope this helps resolving your query. If you have any more questions feel free to post.

    Best Regards!!!

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