Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #317040

    How do we get our business information in the header (opposite the logo?)

    We don’t want the business info in a separate div above, but like most websites, on the opposite of the logo. Please see the images below for clarification. Thanks!

    https://dl.dropboxusercontent.com/u/52916400/enfold/enfold%20Header%20info.png

    #317092

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    function put_stuff_before_main_content() {
    ?>
    	<div class="custom_info_container container">
    		<div class="custom_info">
    			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Totam eos aperiam, ducimus sed ad, mollitia. Sed quas, placeat qui. Placeat!</p>
    		</div>
    	</div>
    <?php
    }
    
    add_action('ava_main_header', 'put_stuff_before_main_content');

    And this to Quick CSS:

    .custom_info_container{
      position: relative;
      height: 0 !important;
    }
    .custom_info{
      width: 40%;
      right: 0;
      position: absolute;
      line-height: 26px;
      top: 20px;
    }

    Cheers!
    Josue

    #317112
    This reply has been marked as private.
    #317124

    Hey!

    Check it now, i used a different code:

    function av_change_logo($logo, $use_image, $headline_type, $sub, $alt, $link){
           $logo .= "<div class='custom_info'>Business Information</div>";
           return $logo;
    }
    add_filter('avf_logo_final_output', 'av_change_logo', 100, 6);

    Best regards,
    Josue

    #318736

    Thanks! Did you change it on the site already, or are you saying I should use the code above? It seems to be working.

    However, I haven’t decided on logo left or right – if I need to move the business information to the left, how can I right align this instead of left? Take a look to see what I mean…

    #318738

    Hi!

    I already changed it.

    Cheers!
    Josue

    #318740

    Yep, I really appreciate it.

    However, I haven’t decided on logo left or right – if I need to move the business information to the left, how can I right align this instead of left? Take a look to see what I mean…

    Also, what If I use the scroll down – will it overlap? I seems like it might.

    #318748

    Hey!

    Change this part in the Quick CSS:

    .custom_info{
      width: 40%;
      right: 0;
      position: absolute;
      line-height: 26px;
      top: 20px;
    }

    To:

    .custom_info{
      right: 0;
      position: absolute;
      line-height: 26px;
      top: 20px;
    }

    Regarding overlapping on scroll, add this:

    .header-scrolled .custom_info {
        line-height: 12px;
        font-size: 11px;
        top: 10px;
    }

    Cheers!
    Josue

    #320845

    I’m really pleased with your support in this matter. Lastly, does this use a separate css?

    If I want to change the font family, size, and line height, what would the css be – something like below?

    .custom_info {font-family: helvetica; font-size: 12; line-height: 21;}

    #320846

    Hey!

    Yes, use this snippet as a starting point:

    .custom_info {
        line-height: 12px;
        font-size: 11px;
        top: 10px;
    }

    Cheers!
    Josue

    #328455

    Hey Josue,

    I’m trying to use the google font in there with this css, but not sure I’m doing it right because it doesn’t work:

    /* header info right */
    .custom_info{
    right: 0;
    position: absolute;
    line-height: 24px;
    top: 18px;
    font-size: 14px;
    font-family: “Merriweather”,​”Helvetic…vetica,​Arial,​sans-serif;
    }

    #328523

    Hi!

    It should be:

    .custom_info{
    right: 0;
    position: absolute;
    line-height: 24px;
    top: 18px;
    font-size: 14px;
    font-family: “Merriweather”;
    }

    Cheers!
    Josue

    #350288
    This reply has been marked as private.
    #350319

    Hey!

    Try with this:

    @media only screen and (max-width: 767px) {
    .custom_info{ display: none; }
    }

    Cheers! 
    Josue

    #351291

    Word great! Thanks!

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘How do we get our business information in the header (opposite the logo?)’ is closed to new replies.