Tagged: x
-
AuthorPosts
-
March 31, 2016 at 2:26 am #860336
shaunatkParticipantNot 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.
March 31, 2016 at 2:27 am #860337
shaunatkParticipantwebsite is reacpros.com
March 31, 2016 at 4:15 am #860489
DarshanaModeratorHi 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!
April 3, 2016 at 5:48 pm #865092
shaunatkParticipant<?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>April 3, 2016 at 5:49 pm #865093
shaunatkParticipantIt got cut off for some reason when I pasted it here. It is still in the file.
April 4, 2016 at 1:18 am #865457
ChristopherModeratorHi there,
Please activate child theme.
Thanks.
April 11, 2016 at 1:29 am #875987
shaunatkParticipantThat was it, did it become inactive when I updated x theme?
Anyways, thanks for your help.
April 11, 2016 at 7:25 am #876339
Paul RModeratorHi,
It shouldn’t but you might have accidentally activated the main xtheme.
Thanks
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-860336 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
