Logo beside navigation

Posted in: Newspaper
Post count: 96

Hi,

Is it possible to have site logo beside navigation in header?

Like this: http://www.screencast.com/t/iMHBEc5W

Post count: 6600

Hi,

You can do this from Appearance -> Menu, add a new menu item and in Navigation Label section add image source like this: http://screencast.com/t/AInGu7tZfwA

Image Source should look like this:

<img src="http://demo.tagdiv.com/newspaper/wp-content/uploads/2013/08/logo-top2.png" />

And you will get this result: http://screencast.com/t/pVqRCnkBmfs

Also use css to style the image if it doesn’t fit well.

Thanks

Post count: 96

What should be the expect size ration of the logo?

Post count: 96

Okay.. I got the perfect size. And it works just perfect.

Now. I want to get rid of header. How can I use just navigation only??

Post count: 96

I removed logo from Theme Panel. But now it also not appearing on mobile beside navigation and search icon.

Post count: 6600

Hi,

Just add this css in Theme Panel > Custom CSS:

.td-header-bg {
display: none !important;
}

This will hide the header on all pages.

Thanks

Post count: 96

Thanks a lot. However, logo is not appearing on mobile site all of sudden.

Post count: 7

I have the challenge to put the logo right besides the navigationon top over the right column.
I had the idea to put it in a widget. But this way it will not be shown on top on mobile devices…

Has anyone an idea for a code? Thanks in advance.

Post count: 6600

Hi,


@dhvanesh

Please remove the css I gave you before and try this:

@media (min-width: 768px) {
.td-header-bg {
display: none !important;
}
}

@media (max-width: 767px) {
.td-header-bg {
display: block !important;
}
}


@seitenprofi

I’m not sure that I understand where you want the logo to appear. Can you please provide more details on what are trying to achieve or maybe a screenshot of something similar?

Thanks

  • This reply was modified 12 years by Lucian.
Post count: 96

Lucian,

It doesn’t make any difference.

Post count: 7

@Lucian: thanks for your question.

I want to realise a two column layout. It should look like this:


____________________________________________
Navigation                   Logo
____________________________________________
Content                      Right column 
                             (News, search)
____________________________________________

The logo shall stay responsive on the right side of the navigation unless the screen is minimized to a mobile version.
And the logo shall stay in a line above the right column.

Post count: 96

Lucian,

Logo appears in sidbar navigation on mobile. Like this: http://www.screencast.com/t/s7G3QuiTq9P9

Post count: 6600

Hi,

The logo appears there because it’s like a menu-item from that list now. Please chose the “header style 2” from Theme Panel and set to hide the header only on screens with the minimum width of 768px using this code in Custom CSS > Theme Panel:

@media (min-width: 768px) {
.td-header-bg {
display: none !important;
}
}

Also remove this code:

.td-header-bg {
display: none !important;
}

and

@media (max-width: 767px) {
.td-header-bg {
display: block !important;
}
}

from Theme Panel > Custom CSS filed.

Hope this helps!
Sorry about this!
Let me know if works!


@seitenprofi
Use the same method to add the logo like a menu-list item and them position it using CSS like you want it.
For the logo to be shown on mobile chose the menu style 2 and use the @media or the advanced CSS from Theme Panel http://screencast.com/t/CvwEyAOxSxb2 to hide the header from other screens or the above CSS:

@media (min-width: 768px) {
.td-header-bg {
display: none !important;
}
}

Thanks

  • This reply was modified 12 years by Lucian.
Post count: 96

It worked just perfect.. Thanks Lucian. However, header ad slot doesn’t appear just below navigation. How can I put ad adsense or any other ad just below navigation on all pages?

Thanks again… 🙂

Post count: 6600

Hi,

Use this method I gave you a while ago:
https://forum.tagdiv.com/topic/adsense-below-header-on-homepage/#post-15013
You can do the same for each template you want the ad to appear on.

Thanks

Post count: 96

Where I can add such code in header.php so I don’t need to add code in index, category and rest of pages.

Post count: 6600

Hi,

In that case you have to remove the css which hides the header from custom css in theme panel and select header style 6 http://screencast.com/t/TgkIv0GMVk and then from header.php file comment or remove this line: http://screencast.com/t/wYFy305hp12

Thanks

Post count: 96

Thanks Lucian…

Viewing 18 posts - 1 through 18 (of 18 total)
You must be logged in to reply to this topic.