• Resolved ankitchauhan12

    (@ankitchauhan12)


    i was using wp header image from a long time and updated yesterday, and now its not showing any images in my header please help me asap.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Did you tried to insert code snippets inside <body> tag manually in header.php?

    Thread Starter ankitchauhan12

    (@ankitchauhan12)

    yes and it was working fine before update

    Thread Starter ankitchauhan12

    (@ankitchauhan12)

    [05-May-2020 04:23:34 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘get_header_images’ not found or invalid function name in /home/admin123c/public_html/wp-includes/class-wp-hook.php on line 287

    Thread Starter ankitchauhan12

    (@ankitchauhan12)

    <?php
    /**
    * The header for our theme.
    *
    * This is the template that displays all of the <head> section and everything up until <div id=”content”>
    *
    * @link https://developer.www.ads-software.com/themes/basics/template-files/#template-partials
    *
    * @package lawyeriax
    */

    global $wp_customize;
    $top_bar_toggle = get_theme_mod(‘lawyeriax_top_bar_toggle’, 0);
    $phone_number = get_theme_mod(‘lawyeriax_top_bar_phone_number’, ‘+1-888-846173’);
    $email_address = get_theme_mod(‘lawyeriax_top_bar_email_address’, ‘[email protected]’);
    $social_icons = get_theme_mod (‘lawyeriax_top_bar_social_icons’, json_encode(array(
    array(
    ‘id’ => ‘lawyeriax_57177abb4e5de’,
    ‘icon_value’ => ‘fa-facebook-square’,
    ‘link’ => ‘#’
    ),
    array(
    ‘id’ => ‘lawyeriax_57177abc4e5df’,
    ‘icon_value’ => ‘fa-twitter-square’,
    ‘link’ => ‘#’
    ),
    array(
    ‘id’ => ‘lawyeriax_57177abd4e5e0’,
    ‘icon_value’ => ‘fa-linkedin-square’,
    ‘link’ => ‘#’
    ),
    array(
    ‘id’ => ‘lawyeriax_57177abe4e5e1’,
    ‘icon_value’ => ‘fa-google-plus-square’,
    ‘link’ => ‘#’
    ),
    array(
    ‘id’ => ‘lawyeriax_57177ac04e5e2’,
    ‘icon_value’ => ‘fa-rss-square’,
    ‘link’ => ‘#’
    )
    )));

    if ( function_exists( ‘the_custom_logo’ ) ) {
    $website_logo_id = get_theme_mod( ‘custom_logo’ );
    $website_logo_meta = wp_get_attachment_image_src($website_logo_id, ‘full’);
    $website_logo = $website_logo_meta[0];
    } else {
    $website_logo = get_theme_mod(‘lawyeriax_navbar_logo’, get_template_directory_uri() . ‘/images/logo.png’);
    }
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>

    <script type=”text/javascript”>
    (function (w, d, t) {
    _ml = w._ml || {};
    _ml.eid = ‘68399’;
    vtid = 112051;
    var s, cd, g, a;
    s = d.getElementsByTagName(t)[0];
    cd = new Date();g = d.createElement(t); g.async = 1; g.src = ‘https://ml314.com/tag.aspx?&#8217; + cd.getDate() + cd.getMonth();
    a = d.createElement(t); a.async = 1; a.src = ‘https://code.visitor-track.com/VisitorTrack2.js&#8217;;
    s.parentNode.insertBefore(g, s); s.parentNode.insertBefore(a, s);
    })(window, document, ‘script’);
    </script>

    <script src=”//scripts.iconnode.com/65480.js”></script>

    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”viewport” content=”width=device-width, initial-scale=1″>
    <script src=”https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js&#8221; async></script>
    <script src=”https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js&#8221; async></script>
    <link rel=”profile” href=”https://gmpg.org/xfn/11″&gt;
    <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
    <?php endif; ?>
    <?php wp_head();

    /*Custom Colors*/

    lawyeriax_custom_colors();

    ?>
    <style>
    .mobile-3 .wpb_wrapper {
    margin: 0 auto!important;
    }
    </style>

    </head>

    <body <?php body_class(); ?>>
    <div id=”page” class=”site”>
    <?php esc_html_e( ‘Skip to content’, ‘lawyeriax’ ); ?>

    <header id=”masthead abc” class=”site-header” role=”banner”>

    <div class=”navbar navbar-main sticky-navigation navbar-fixed-top”>

    <?php if( $top_bar_toggle && isset($top_bar_toggle) ): ?>

    <div id=”top-bar” class=”top-bar”>

    <?php elseif ( isset( $wp_customize ) ): ?>

    <div id=”top-bar” class=”top-bar hidden-in-customizer”>

    <?php endif; ?>

    <?php if( ($top_bar_toggle) || isset( $wp_customize ) ): ?>

    <div class=”container”>
    <div class=”top-bar-left top-bar-social”>
    <p><span>Phone: +1 (925) 830 – 1925 </span>
    </p>
    <p><span>Email: [email protected]</span></p>
    </div>
    <div class=”top-bar-right top-bar-contact”>
    <p ><span>Get Demo</span></p>
    </div>
    </div> <!– container –>
    </div>

    <?php endif; ?>

    <div class=”container container-header”>
    <div class=”col-md-9 pull-right col-xs-12 “>
    </div>
    <div class=”header-inner”>

    <div class=”header-inner-site-branding”>
    <div class=”site-branding-wrap”>
    <div class=”site-branding”>
    <?php
    if ( !empty ($website_logo) ) { ?>
    ” title=”<?php get_bloginfo(‘title’); ?>”>
    ” alt=”<?php get_bloginfo( ‘title’ ); ?>”/>

    <?php } else { ?>
    <h1 class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
    <?php
    $description = get_bloginfo( ‘description’, ‘display’ );
    if ( $description || is_customize_preview() ) { ?>
    <p class=”site-description”><?php echo $description; /* WPCS: xss ok. */ ?></p>
    <?php
    }} ?>
    </div><!– .site-branding –>

    </div><!– .site-branding-wrap –>

    <div class=”menu-toggle-button-wrap”>
    <button class=”menu-toggle” aria-controls=”primary-menu” aria-expanded=”false”>
    <i class=”fa fa-bars”></i>
    <span><?php esc_html_e( ‘Primary Menu’, ‘lawyeriax’ ); ?></span>
    </button>
    </div>
    </div>

    <div class=”main-navigation-wrap”>
    <nav id=”site-navigation” class=”main-navigation” role=”navigation”>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_id’ => ‘primary-menu’ ) ); ?>
    </nav><!– #site-navigation –>
    </div>

    </div><!– .header-inner –>

    </div><!– .container –>

    </div>

    </header><!– #masthead –>
    <div class=”header_new”><!–<?php if(function_exists(‘chi_display_header’)) { chi_display_header(); } ?>–>
    <?php echo do_shortcode( ‘[WP_HEADER_IMAGES]’ ); ?>
    </div>
    <div class=”bottom-header ankit”>
    <div class=”container”>
    <div class=”col-md-12 text-center”>
    <?php the_title( ‘<h1 class=”entry-title”>’, ‘</h1>’ ); ?>

    </div>

    <div class=”col-md-6 col-xs-12 text-right”>

    <div class=”link-header”></div>

    </div>
    </div></div>
    <div class=”Clearfix”></div>

    <div id=”content” class=”site-content”>
    <div class=”container”>

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @ankitchauhan12 please try it again with the latest version release and give your feedback, i am on hold.

    I have tested, it is working now, thank you.

    Thread Starter ankitchauhan12

    (@ankitchauhan12)

    thanks both of you, it’s working fine for me , i just deactivated and reactivated again.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Thank you @ankitchauhan12 and @raissufyan . “get_header_images” has been renamed to “wphi_get_header_images” to keep it unique in general. So hopefully we will be able to avoid conflicts with other plugins in future.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WP header stoped working’ is closed to new replies.