Tagged: x
-
AuthorPosts
-
July 24, 2016 at 10:48 pm #1101305
charliesaParticipantIf I want to add responsive text to the right of the the logo on top, can I? (stacked navbar)
July 24, 2016 at 10:56 pm #1101307
charliesaParticipantIf I can’t, I’ll put it on a global semi transparent layer on each slide in the slider revolution, but I had other plans for the slides.
July 25, 2016 at 12:12 am #1101353
RupokMemberHi there,
Thanks for writing in! You can’t directly place any content to the logobar. So if you have another idea; go for that.
Cheers!
July 25, 2016 at 12:15 am #1101354
ChristopherModeratorHi 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. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Copy _brand.php from framework/views/global and put it in the same path inside child theme, replace existing code with following :
<?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>' : ''; ?> <div class="x-section man pan"> <div class="x-column x-1-2"> <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> <div class="x-column x-1-2">Add text here</div> </div>Hope it helps.
July 25, 2016 at 12:56 am #1101387
charliesaParticipantI did And I’ll try it. Thanks. I Was going from here, and then going to figure it out myself.
<?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 = ‘‘;
?>
<?php echo ( is_front_page() ) ? ‘<h1 class=”visually-hidden”>’ . $site_name . ‘</h1>’ : ”; ?>
This works, Not sure what the CSS Class does IDK. I was just going to wing it.
Thanks
July 25, 2016 at 1:04 am #1101392
RupokMemberHi there,
Are you referring the visually-hidden class? For this class, the site name is technically hidden when you have the logo exist for your site and displays when the logo is absent.
Cheers!
July 25, 2016 at 1:04 am #1101393
charliesaParticipantThat is EXACTLY what I wanted, I had too much text to add the for way I was doing it. Thanks you!!
July 25, 2016 at 1:07 am #1101395
RupokMemberYou are welcome!
Feel free to let us know if you face any other issue. We’ll be happy to assist you.
Cheers!
July 25, 2016 at 1:09 am #1101398
charliesaParticipantFor the record the URL is http://charliesandner.com I may shift things around a bit, but you guys, as usual, did the work for me.
July 25, 2016 at 1:11 am #1101399
RupokMemberGreat. If you have any additional questions at this or in future time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1101305 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
