-
AuthorPosts
-
September 11, 2014 at 12:35 am #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
September 11, 2014 at 2:16 am #317092Hey!
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!
JosueSeptember 11, 2014 at 3:13 am #317112This reply has been marked as private.September 11, 2014 at 4:13 am #317124Hey!
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,
JosueSeptember 14, 2014 at 4:39 am #318736Thanks! 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…
September 14, 2014 at 4:41 am #318738Hi!
I already changed it.
Cheers!
JosueSeptember 14, 2014 at 4:44 am #318740Yep, 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.
September 14, 2014 at 5:04 am #318748Hey!
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!
JosueSeptember 18, 2014 at 4:16 am #320845I’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;}
September 18, 2014 at 4:20 am #320846Hey!
Yes, use this snippet as a starting point:
.custom_info { line-height: 12px; font-size: 11px; top: 10px; }
Cheers!
JosueOctober 1, 2014 at 8:31 pm #328455Hey 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;
}October 1, 2014 at 10:01 pm #328523Hi!
It should be:
.custom_info{ right: 0; position: absolute; line-height: 24px; top: 18px; font-size: 14px; font-family: “Merriweather”; }
Cheers!
JosueNovember 12, 2014 at 7:56 pm #350288This reply has been marked as private.November 12, 2014 at 8:52 pm #350319Hey!
Try with this:
@media only screen and (max-width: 767px) { .custom_info{ display: none; } }
Cheers!
JosueNovember 14, 2014 at 4:27 pm #351291Word great! Thanks!
-
AuthorPosts
- The topic ‘How do we get our business information in the header (opposite the logo?)’ is closed to new replies.