Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1101305
    charliesa
    Participant

    If I want to add responsive text to the right of the the logo on top, can I? (stacked navbar)

    #1101307
    charliesa
    Participant

    If 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.

    #1101353
    Rupok
    Member

    Hi 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!

    #1101354
    Christopher
    Moderator

    Hi 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.

    #1101387
    charliesa
    Participant

    I 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 = ‘' . $site_description . '‘;

    ?>

    <?php echo ( is_front_page() ) ? ‘<h1 class=”visually-hidden”>’ . $site_name . ‘</h1>’ : ”; ?>

    ” class=”<?php x_brand_class(); ?>” title=”<?php echo $site_description; ?>”>
    <?php echo ( $logo == ” ) ? $site_name : $site_logo; ?>
    <?php echo ’24 Hour Care’ ?>

    This works, Not sure what the CSS Class does IDK. I was just going to wing it.

    Thanks

    #1101392
    Rupok
    Member

    Hi 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!

    #1101393
    charliesa
    Participant

    That is EXACTLY what I wanted, I had too much text to add the for way I was doing it. Thanks you!!

    #1101395
    Rupok
    Member

    You are welcome!

    Feel free to let us know if you face any other issue. We’ll be happy to assist you.

    Cheers!

    #1101398
    charliesa
    Participant

    For 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.

    #1101399
    Rupok
    Member

    Great. 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.

  • <script> jQuery(function($){ $("#no-reply-1101305 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>