Tagged: x
-
AuthorPosts
-
November 9, 2016 at 2:02 pm #1250559
bearandociParticipantHello!
First of all, big thank you for your amazing theme!
I have one question. How can I add two blocks between logo in header? For example – https://monosnap.com/file/wJ8pyWf4wcsvoRnb9kJPyIsLZgUG00
Best regards
November 9, 2016 at 3:37 pm #1250641
JoaoModeratorHi There,
What exactly you would like to Add?
You could add on the topbar one content, float it left, than on the right another and use a negative margin.
Can you provide more details about what you are trying to put there?
Thanks
Joao
November 10, 2016 at 12:57 am #1251247
bearandociParticipantI am exactly don’t know what it be, maybe small banners, maybe text.
Where I can edit html code of header in x-theme?November 10, 2016 at 1:08 am #1251254
FriechModeratorHi There,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.
Then on your child theme navigate to this directory: /x-child/framework/views/global/ create a file named _brand.php in there and paste the code below on it.
<?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 '<h1 class="visually-hidden">' . $site_name . '</h1>'; ?> <div class="left-block left"> Lorem ipsum dolor sit amet. </div> <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>"> <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?> </a> <div class="right-block right"> Lorem ipsum dolor sit amet. </div>Hope it helps, Cheers!
November 15, 2016 at 9:46 am #1258084
bearandociParticipantIt’s working! Perfect. Thank you!
Best regards
November 15, 2016 at 10:35 am #1258139
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1250559 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
