Tagged: x
-
AuthorPosts
-
September 16, 2016 at 2:41 am #1177848
weedywhizzParticipantHi,
I’d like to add some text under or next to my brand text.
Checked some threads here but most of the solutions add a line over the top of my navbar.Website is http://www.weedywhizz.com
The text should also have the google megrim font but font size should be smaller.
Thank you very much.
Cheers
September 16, 2016 at 2:53 am #1177866
FriechModeratorHi There,
Thanks for writing in! 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 ( 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; ?>"> <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?> </a> <div class="site-tagline">YOUR CONTENT HERE</div>Replace the YOUR CONTENT HERE with your own actual content.
Let us know how it goes.
Cheers!
September 16, 2016 at 4:56 am #1177989
weedywhizzParticipantHi,
just added the code but it happens again – the text appears on top of the navbar.
Take a look at my attachment to see what I mean. The main brand also moves up and is not in line with the menu any more.Thanks
CheersSeptember 16, 2016 at 9:50 am #1178257
JoaoModeratorHi There,
Please keep the code there so we can provide you the CSS to align it correctly.
Let us know when it is ready so we can help 🙂
**Love modulars!
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1177848 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
