How do I place a listen now image in the header next logo in mobile

hi,

I want to put an image with a link in the header next to the logo and make it appear only in mobile.

I am only concerned about putting up there as I am not able to find the place in the backend. I can make it appear only on mobile using media query.

help me please. thanks.

This is my site http://classichits.ie/

You mean inside <div id="mx-header"> next to <div class="logo">?

yes

So what is your problem exactly?

1 Like

I am not able to able it in the back end. Its a wordpress site.

What exactly does that mean?

I am not able to find it in the back end

You had the same problem with another site earlier. Use the developer tools.

So when you say “it’s a Wordpress site”, do you mean it’s one hosted on wordpress.com, or self hosted using the download from wordpress.org?

its self hosted. built using wordpress theme

I don’t use WordPress, but I’m guessing there must be some kind of include file for the header which you can edit.

Is there anyway I can do it using JS

That doesn’t sound like a good solution to me. What if JS is disabled/doesn’t load? And why put the burden of extra processing on the device and browser?

If you are working on WordPress sites for clients, I’d say it would be much more useful to learn how to edit the HTML properly, rather than looking for shortcuts and work-arounds.

3 Likes

The theme will have a header.php file, but you really should not edit the theme itself. Any changes you make will be overwritten when an updated version of the theme is installed.

You should do all of these changes in a child theme of your theme.

1 Like

It looks like this is a custom theme. Does that not make a difference?

Yes, if it is a custom theme, the code can be changed any way @Nauman_Tanwir wants. I thought it was a ready-made theme.

So find the header.php file and edit it to add the image.

2 Likes

hi,

this is my header.php http://pastebin.com/10fFJZ0j

can you please tell me where should I edit it

thanks a mil again.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.