Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey guys, pretty new to drupal and I love the Corolla theme. What I'd like to do however is display the logo inline with the primary links. Screenshot attached. I'd like to float the menu right and insert the logo left. This is similar to a bitly, but with my coding experience it's useless. Any help would seriously be appreciated.
Comment | File | Size | Author |
---|---|---|---|
#6 | screen5.jpg | 44.34 KB | rickh |
#4 | screen3.jpg | 23.32 KB | rickh |
screen.jpg | 47.61 KB | rickh |
Comments
Comment #1
Deepika.chavan CreditAttribution: Deepika.chavan commentedHi,
To display the logo and primary links follow these steps:
1. Place the following code before
<?php if ($page['header_menu']): ?>
line in page.tpl.php2. Add following code in corolla.info file after 'print.css'.
3. Create a local.css file and add following css code in that:
4. Please clear cached data here- admin/config/development/performance.
Note: Add margin-left to #logo if required.
HTH!!
Rgrds,
Deepika chavan.
Comment #2
rickh CreditAttribution: rickh commentedHey Deepika
Thanks for the quick response. I couldn't find the
<?php if ($page['header_menu']): ?>
in page.tpl.php but did findIf this is still the place to put it then I'll be happy to go ahead.
Thanks again
Comment #3
Deepika.chavan CreditAttribution: Deepika.chavan commentedHi rickh,
Yes, thats the one. Please paste the above code before
<?php if (!empty($header_menu)): ?>
and try that out.HTH!!
Rgrds,
Deepika Chavan.
Comment #4
rickh CreditAttribution: rickh commentedHey Deepika
Thanks for the reply. I think the logo is in the wrong block region or not inline with the menu. Also the logo shows twice, where corolla puts it and where we have placed it now. I've attached a screenshot.
Comment #5
Deepika.chavan CreditAttribution: Deepika.chavan commentedHi rickh,
1. Please remove the original logo code from page.tpl.php. which is after
<div id="branding">
.(I have cut that code from there and pasted it above
<?php if (!empty($header_menu)): ?>
line.)2. Please check if your menus block id is 'block-system-main-menu' if not then replace that part in above css code.
You can add 'margin-left: 1.5em' under #logo to move the logo and menu sightly to right.
3. Clear cached data.
HTH!!
Rgrds,
Deepika.
Comment #6
rickh CreditAttribution: rickh commentedDeepika
Thanks for all the help and i'm very close. I have moved the menu to the right hand side and the logo is bnow inline. All that i'd still like to do is move the logo inline with content. If I can get that done I owe you big time.
Comment #7
Deepika.chavan CreditAttribution: Deepika.chavan commentedHi,
Can you please give me the url of your site. So it will be easy for me to solve your problem.
Rgrds,
Deepika.
Comment #8
rickh CreditAttribution: rickh commentedsure www.5storm.com
Comment #9
Deepika.chavan CreditAttribution: Deepika.chavan commentedHi,
Add following css to move the logo to right side. Increase the margin-left if you want.
Please clear cached data.
HTH!!
Rgrds,
Deepika.
Comment #10
giorgio79 CreditAttribution: giorgio79 commentedSet this issue #856364: Optionally display site name and logo on top right corner (screenshot attached) as duplicate
Comment #11
giorgio79 CreditAttribution: giorgio79 commentedI realized this is much easier, just create a block with the logo inside and at it to the top menu area. :)
Comment #12
Jeff Burnz CreditAttribution: Jeff Burnz commented