Forum Replies Created

Viewing 15 replies - 31 through 45 (of 82 total)
  • Thread Starter iacino

    (@iacino)

    Nevermind, I deleted a plugin and now my site is fine.

    Thread Starter iacino

    (@iacino)

    Oh and my website is https://www.mouseoverdesigns.com

    Thread Starter iacino

    (@iacino)

    Well, the same problem is happening if I just have new code in child CSS. Even if I add !important.

    Thread Starter iacino

    (@iacino)

    If nobody else has any suggestions, I guess I will have to go back and add the new changes only. tx.

    Thread Starter iacino

    (@iacino)

    Yes, it’s been activated and only a few changes are taking. The others will take depending on the order.

    Thread Starter iacino

    (@iacino)

    Outhands – I just find it faster to copy the entire CSS and modify in child theme. Can this create the problem I am having?

    Thread Starter iacino

    (@iacino)

    Good idea and it should have worked but it doesn’t ??

    Thank you

    Thread Starter iacino

    (@iacino)

    I decided to copy the entire functions file to my child folder and change what you said but nothing changed. So, then I just changed the original file and the changed worked. If you check my website, it looks correct except for size and color and spacing up and down. https://www.mouseoverdesigns.com. How do I make it match the quote above?

    Thread Starter iacino

    (@iacino)

    I copied the function, pasted and changed it in my child functions but get the following error: invalid argument supplied for foreach() in /home/mouseove/public_html/wp-content/themes/bizlight-child/functions.php on line 160, that you can see on website: https://www.mouseoverdesigns.com. I haven’t added the css yet. Here is a copy and paste of my child functions page. I have added it towards the bottom. It may be syntax error but I don’t know php.

    <?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');
    
    /*FREE QUOTE BUTTON*/
    add_filter('gettext', 'translate_text');
    add_filter('ngettext', 'translate_text');
    
    function translate_text($translated) {
    $translated = str_ireplace('Click to start', 'Free Quote', $translated);
    return $translated;
    }
    
    /*SERVICES SECTION*/
    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( 75 ,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;
    }
    
    function bizlight_home_service() {
            global $bizlight_customizer_all_values;
            if( 1 != $bizlight_customizer_all_values['bizlight-home-service-enable'] ){
                return null;
            }
            $bizlight_service_arrays = bizlight_home_service_array(  );
            if( is_array( $bizlight_service_arrays )){
                $bizlight_home_service_title = $bizlight_customizer_all_values['bizlight-home-service-title'];
                ?>
                <section class="evision-wrapper block-section wrap-service">
                    <div class="container">
                <?php if(!empty( $bizlight_home_service_title ) ){
                    ?>
                    <h2 class="evision-animate slideInDown"><?php echo esc_html( $bizlight_home_service_title );?></h2>
                    <span class="title-divider"></span>
                    <?php
                }?>
                        <div class="row block-row overhidden">
                            <?php
                            $i = 1;
                            $data_delay = 0;
                            foreach( $bizlight_service_arrays as $bizlight_service_array ){
                                if( 3 < $i){
                                    break;
                                }
                                $data_wow_delay = 'data-wow-delay='.$data_delay.'s';
                                ?>
                                <div class="col-md-4 box-container evision-animate fadeInUp" <?php echo esc_attr( $data_wow_delay );?>>
                                    <div class="box-inner">
                                                                              <div class="icon-container">
                                                <span><i class="fa <?php echo esc_attr( $bizlight_service_array['bizlight-home-service-icon'] ); ?>"></i></span>
                                            </div>
                                            <div class="box-content">
                                                <h3><?php echo esc_html( $bizlight_service_array['bizlight-home-service-title'] );?></h3>
                                                <div class="box-content-text">
                                                    <p>
                                                        <?php echo wp_kses_post( $bizlight_service_array['bizlight-home-service-content'] );?>
                                                    </p>
                                                </div>
                                            </div>
    
                                    </div>
                                </div>
                                <?php
                                $i++;
                            }
                            ?>
                        </div>
                    </div>
                </section><!-- service section -->
                <?php
            }
            ?>
    
    /*TESTIMONIAL SECTION*/
    <!-- Indicators -->
                                    <ol class="fa fa-quote-left cust-quote">
                                        <?php
                                        $i = 0;
                                        foreach( $bizlight_testimonial_arrays as $bizlight_testimonial_array ){
                                            if (3 < $i) {
                                                break;
                                            }
                                            ?>
                                            <li data-target="#carousel-testimonial" data-slide-to="<?php echo absint($i);?>" class="<?php echo $i == 0 ? 'active' : '';?>">
                                            <?php
                                            $i++;
                                        }
                                        ?>
    
    <?php
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    Thread Starter iacino

    (@iacino)

    Not on my monitor but I guess since my monitor is older style. Oh well, thank you for quickly replying. Many thanks.

    Thread Starter iacino

    (@iacino)

    I have a child theme setup but shere is the HTML file to add the javascript in WordPress? I previously went through every WP plugin for tooltips and none of them will work with my specific problem. Thanks for your help thus far!!

    Thread Starter iacino

    (@iacino)

    The look and feel of the site template is really nice but really tough to change. I really liked your idea and saw a clickable one on the same site on this page that says, click me:
    https://www.menucool.com/tooltip/javascript-tooltip
    Where do I place the code? I already have it setup as a child theme. Thanks for all of your help!!

    Thread Starter iacino

    (@iacino)

    It’s fixed!! Thanks again!! Beautiful template by the way!

    Thread Starter iacino

    (@iacino)

    Ok, that sounds like a great idea. Thank you so much for your help!

    Thread Starter iacino

    (@iacino)

    I tried it but It jumbled the page up. Not sure what can be done. Any other ideas?

Viewing 15 replies - 31 through 45 (of 82 total)