• Resolved gokh

    (@gokh)


    Hi,

    I learned the cause of the problem I had before. Theme was installed with version 5.5.

    When I upgraded to Php7, the properties panel does not open. But it opens in Php5.5. Is the solution possible?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 46 through 60 (of 87 total)
  • Thread Starter gokh

    (@gokh)

    I disabled W3 Total Cache. Yes it worked.

    Thread Starter gokh

    (@gokh)

    Yes it worked.

    Theme Author terrathemes

    (@terrathemes)

    Please remove this code from your my-custom-functions.js file:

    /**
     * Enqueue custom functions script
     */
    function meteorite_child_custom_functions() {
    	wp_enqueue_script( 'meteorite-child-custom-js', get_stylesheet_directory_uri() . '/js/my-custom-functions.js', array('jquery'), '', true );
    }
    add_action( 'wp_enqueue_scripts', 'meteorite_child_custom_functions' );
    Thread Starter gokh

    (@gokh)

    There is no such code in my-custom-functions.js file.
    Available code,

     jQuery(function($) {
      if ( $('.meteorite-contact-info').length ) {
      	$(this).find('.contact-phone').html('<span><i class="fa fa-phone"></i></span><a href="tel:+9005423141341">0 542 314 13 41</a>');
      }
    });
    Theme Author terrathemes

    (@terrathemes)

    Thread Starter gokh

    (@gokh)

    Yes, it appears to have been removed from the desktop. It appears in ftp, I am uninstalled now.

    Thread Starter gokh

    (@gokh)

    I tried the W3 Total Cache again did not work. Is it incompatible with the W3 Total Cache theme? Do I have to lift it?

    Theme Author terrathemes

    (@terrathemes)

    Now it seems to be removed.

    I did not tested W3 Total Cache but it should be compatible with Meteorite. If something isn’t working correctly I think it may be a wrong configuration of the cache plugin.

    Is everything working now?

    Thread Starter gokh

    (@gokh)

    I’ll check again for the cache plugin settings.
    The site is running. Topbar phone clicking does not work.
    Child theme css file is empty. The codes have not been imported.

    Thread Starter gokh

    (@gokh)

    Theme Author terrathemes

    (@terrathemes)

    Topbar phone clicking does not work.

    Did you had a topic where you wanted this to be clickable? The JS code inside of your my-custom-functions.js only applies the tel-link to the contact widgets on your footer and contact page.

    Child theme css file is empty. The codes have not been imported.

    Of course it is empty. If you want the code from the Custom CSS panel to be inside of your child themes style.css you have to cut and paste them in. The Customizer Export/Import plugin is only to get the same settings inside of the Customizer as before. This doesn’t do anything with your files.

    Thread Starter gokh

    (@gokh)

    Yes, we did, he was working. But, I have not made any changes in the codes. I do not understand if he did not work afterwards.

    https://ww.wp.xz.cn/support/topic/contact-page-mobile/

    Theme Author terrathemes

    (@terrathemes)

    You have to paste this to the bottom of your functions.php file in your child theme

    /**
     * Topbar
     * from /meteorite/inc/functions/functions-header.php
     */
    if ( ! function_exists('meteorite_nav_topbar') ) :
    function meteorite_nav_topbar() {
    	if ( get_theme_mod('topbar_type', 'none') != 'none' ) {
    
    		$claim = '';
    		if ( get_theme_mod('claim', 'Display your clame here.') != '' ) {
    			$claim .= "<span class='claim'>" . esc_html(get_theme_mod("claim", __("Display your claim here.", 'meteorite'))) . "</span>";
    		}
    		$contact = '';
    if ( get_theme_mod('tel', '+1 (0) 999-000') != '' ) {
      $contact .= "<a href='tel:+9005423141341'><span class='tel'>" . esc_html(get_theme_mod("tel", "+1 (0) 999-000")) . "</span></a>";
    }
    		if ( get_theme_mod('email', '[email protected]') != '' ) {
    			$contact .= "<a href='mailto:" . antispambot(sanitize_email(get_theme_mod('email', '[email protected]'))) . "'><span class='email'>" . antispambot(sanitize_email(get_theme_mod('email', '[email protected]'))) . "</span></a>";
    		}
    		$social = '';
    		if ( get_theme_mod('social-media-one', 'www.facebook.com') != '' ) {
    			$social .= "<li><a href='" . esc_url(get_theme_mod('social-media-one', 'www.facebook.com')) . "' target='_blank'></a></li>";
    		}
    		if ( get_theme_mod('social-media-two', 'plus.google.com') != '' ) {
    			$social .= "<li><a href='" . esc_url(get_theme_mod('social-media-two', 'plus.google.com')) . "' target='_blank'></a></li>";
    		}
    		if ( get_theme_mod('social-media-three', 'www.youtube.com') != '' ) {
    			$social .= "<li><a href='" . esc_url(get_theme_mod('social-media-three', 'www.youtube.com')) . "' target='_blank'></a></li>";
    		}
    		if ( get_theme_mod('social-media-four', 'twitter.com') != '' ) {
    			$social .= "<li><a href='" . esc_url(get_theme_mod('social-media-four', 'twitter.com')) . "' target='_blank'></a></li>";
    		}
    		if ( get_theme_mod('social-media-five', 'linkedin.com') != '' ) {
    			$social .= "<li><a href='" . esc_url(get_theme_mod('social-media-five', 'linkedin.com')) . "' target='_blank'></a></li>";
    		}
    		if ( get_theme_mod('social-media-six', 'pinterest.com') != '' ) {
    			$social .= "<li><a href='" . esc_url(get_theme_mod('social-media-six', 'pinterest.com')) . "' target='_blank'></a></li>";
    		} ?>
    		
    		<div class="topbar">
    			<div class="container">
    				<div class="row">
    					<?php if ( get_theme_mod('topbar_type', 'none') == 'topbar_1' ) { ?>
    						<div class="contact-field contact-field-left col-md-8">
    							<?php echo $contact; ?>
    						</div>
    						<div class="social-icons social-nav social-nav-right col-md-4">
    							<nav>
    								<ul>
    									<?php echo $social; ?>
    								</ul>
    							</nav>
    						</div>
    					<?php } elseif ( get_theme_mod('topbar_type', 'none') == 'topbar_2' ) { ?>
    						<div class="social-icons social-nav social-nav-left col-md-4">
    							<nav>
    								<ul>
    									<?php echo $social; ?>
    								</ul>
    							</nav>
    						</div>
    						<div class="claim-field claim-field-right col-md-8">
    							<?php echo $claim; ?>
    						</div>
    					<?php } elseif ( get_theme_mod('topbar_type', 'none') == 'topbar_3' ) { ?>
    						<div class="contact-field contact-field-left col-md-6">
    							<nav>
    								<?php echo $contact; ?>
    							</nav>
    						</div>
    						<div class="claim-field claim-field-right col-md-6">
    							<?php echo $claim; ?>
    						</div>
    					<?php } elseif ( get_theme_mod('topbar_type', 'none') == 'topbar_4' ) { ?>
    						<div class="topbar-nav topbar-nav-left col-md-8">
    							<nav>
    								<?php if ( has_nav_menu('topbar') ) {
    									wp_nav_menu( array('theme_location' => 'topbar', 'menu_id' => 'topbar-menu', 'depth' => 1 ) ); ?>
    								<?php } ?>
    							</nav>
    						</div>
    							<div class="social-icons social-nav social-nav-right col-md-4">
    							<nav>
    								<ul>
    									<?php echo $social; ?>
    								</ul>
    							</nav>
    						</div>
    					<?php } ?>
    				</div>
    			</div>
    		</div>
    		<?php
    	}
    }
    endif;

    This is overwriting the function that creates the topbar.

    Thread Starter gokh

    (@gokh)

    I could not call from another phone but I think it will work. The hover effect was. However, there are 2 phone logos.

    Theme Author terrathemes

    (@terrathemes)

    Try this CSS to remove one icon and the additional padding that causes the menu to break.

    .topbar a:nth-child(1) {
      display: inline;
      padding: 0;
    }
    .topbar a:nth-child(1)::before {
      content: "";
    }
Viewing 15 replies - 46 through 60 (of 87 total)

The topic ‘Problem upgrading from Php5.5 to Php7’ is closed to new replies.