Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #860336

    shaunatk
    Participant

    Not sure what happened. I have this code in my “brand.php” file in my x child global folder`

    <?php

    // =============================================================================
    // VIEWS/GLOBAL/_BRAND.PHP
    // —————————————————————————–
    // Outputs the brand.
    // =============================================================================

    $site_name = get_bloginfo( ‘name’ );
    $site_description = get_bloginfo( ‘description’ );
    $logo = x_make_protocol_relative( x_get_option( ‘x_logo’ ) );
    $site_logo = ‘<img src=”‘ . $logo . ‘” alt=”‘ . $site_description . ‘”>’;

    ?>

    <?php echo ( is_front_page() ) ? ‘<h1 class=”visually-hidden”>’ . $site_name . ‘</h1>’ : ”; ?>

    <a href=”<?php echo home_url( ‘/’ ); ?>” class=”<?php x_brand_class(); ?>” title=”<?php echo $site_description; ?>” class=”left”>
    <?php echo ( $logo == ” ) ? $site_name : $site_logo; ?>
    </a>`

    It was working the other day.

    #860337

    shaunatk
    Participant

    website is reacpros.com

    #860489

    Darshana
    Moderator

    Hi there,

    Thanks for writing in! The code you have posted, does not have any call now button. Your file may be corrupted or replaced accidentally. Please edit your file and add your code again.

    Thanks!

    #865092

    shaunatk
    Participant
    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_BRAND.PHP
    // -----------------------------------------------------------------------------
    // Outputs the brand.
    // =============================================================================
    
    $site_name        = get_bloginfo( 'name' );
    $site_description = get_bloginfo( 'description' );
    $logo             = x_make_protocol_relative( x_get_option( 'x_logo' ) );
    $site_logo        = '<img src="' . $logo . '" alt="' . $site_description . '">';
    
    ?>
    
    <?php echo ( is_front_page() ) ? '<h1 class="visually-hidden">' . $site_name . '</h1>' : ''; ?>
    
    <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>" class="left">
      <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
    </a>
    
    <a href="tel:5138490332"><img src="/wp-content/uploads/2016/03/call-today-button.png" class="right"></a>
    #865093

    shaunatk
    Participant

    It got cut off for some reason when I pasted it here. It is still in the file.

    #865457

    Christopher
    Moderator

    Hi there,

    Please activate child theme.

    Thanks.

    #875987

    shaunatk
    Participant

    That was it, did it become inactive when I updated x theme?

    Anyways, thanks for your help.

    #876339

    Paul R
    Moderator

    Hi,

    It shouldn’t but you might have accidentally activated the main xtheme.

    Thanks