Tagged: x
-
AuthorPosts
-
May 20, 2016 at 3:58 am #1001209
Rue NelModeratorHello There,
What you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Once you have your child theme active and ready, please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file<?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>' : ''; ?> <?php if ( is_front_page() ) : ?> <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>"> <?php echo 'insert some text here'; ?> </a> <?php else : ?> <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>"> <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?> </a> <?php endif; ?>3] Save the file named as
_brand.php
4] Upload this file to your server in the child theme’s folder
wp-content/themes/x/framework/views/global/Please let us know if this works out for you.
May 20, 2016 at 11:15 am #1001726
iamwithUParticipantThanks much Rue Nel. I’ll try it out soon. Appreciate the trouble & extra effort on your part! 🙂
May 20, 2016 at 1:15 pm #1001916
RahulModeratorYou’re welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-986036 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
