Viewing 15 replies - 1 through 15 (of 25 total)
  • Hey there merrytomarry,

    Hope you’re well today πŸ™‚

    Would you mind posting link to your site where you got this so I can take a look?

    Best regards.
    Bojan

    Thread Starter merrytomarry

    (@merrytomarry)

    Hey there!

    I currently turned the plugin off since it doesn’t look good in mobile.
    I’ll turn it on for you so you can see it at the header part.

    http://merrytomarry.ph

    Hey again,

    I’ve checked your site and I’m not being able to see the banner on mobile device at all?

    What am I missing here?

    Best regards,
    Bojan

    Thread Starter merrytomarry

    (@merrytomarry)

    Ooops. Please try it again. I messed something up. It’s now up.

    Thread Starter merrytomarry

    (@merrytomarry)

    The ads in the widgets/sidebar are working perfectly. My issue is with the banner/header ad.

    Hey again,

    I’ve checked your site and I can see what you mean about the header.

    However, since you have right clicking disabled by one of your site I’ve been having hard time inspecting your site and going through HTML, can you please disable that plugin while we’re doing this?

    It appears that some of the other elements is going out of the content which is possibly causing this but as I mentioned above going through HTML in inspector is really hard and slow without ability to right click.

    Best regards,
    Bojan

    Thread Starter merrytomarry

    (@merrytomarry)

    hi again bojan,

    i have switched off the right click disabling plugin. you can now check on the HTML. thanks! πŸ™‚

    Hey again,

    I’ve tried my best to figure this one out but without real success since I’m not really sure what kind of responsive mode are you using.

    I’ve also checked the theme and it seems responsive, but when checking your site the responsive CSS is not being applied.

    What happens there is the div where your banner is places is inside the body element of your site so when you open your site on mobile resolutions the body element is getting the correct width, while your element with ID page is having fixed with of 1008px. Since the banner is wrapped with body element it can’t properly expand and center because of width of its wrapper and to center it in this scenario we’d have to define width of that banner holder which would not be responsive if that makes sense.

    Best regards,
    Bojan

    Thread Starter merrytomarry

    (@merrytomarry)

    How will I be able to define the width of the banner holder? The reason the blog wasn’t responsive is to prevent the ads found at the sidebar be displaced at the end of the posts when viewed using mobile. In short, we wanted the ads displayed the same in both interface (desktop and mobile). What could we do to fix this? Appreciate all the help, Bojan. πŸ™‚

    Hey again,

    Well the banner is hard coded somehow, probably just added in your header.php. What you can do is define its width in HTML but the issue with that is it will have the same width on all resolutions so this is not a proper solution.

    I’m not sure what the original issue was when you removed/disabled responsive CSS but this is definitely not a good way to do that.

    You can simply add ads in header, there are even videos about that which you can check here https://www.youtube.com/watch?v=gVC7sQnT348.

    Best regards,
    Bojan

    Thread Starter merrytomarry

    (@merrytomarry)

    Thread Starter merrytomarry

    (@merrytomarry)

    Thread Starter merrytomarry

    (@merrytomarry)

    I saw the youtube video you’ve just sent and it is really helpful. I am just not sure where I should insert the codes (and if the codes I will be using is the same as what I have sent in my first message?) I got that code by inserting an image using add new post and using the text part (and not the visual part) since it contained HTML data generated when I inserted the image. Is that correct? Or is there a proper way to create a code for an image I will be using as an ad (with hyperlink). Thanks! Sorry for bombarding you with a lot of questions. I am not that familiar with WordPress and I am purely relying on what I am seeing on youtube and research and forums in the creation of the blog.

    (btw, you might want to check brideandbreakfast.ph, that’s the site we based our blog — their desktop and mobile version are the same and their banner ad is at the center)

    Hey again,

    I understand, to do this you’ll have to edit your theme header.php which is located in the root folder of your theme.

    The proper way to do this would be first creating a child theme, then making a copy of header.php there and than making the changes in your child theme header.php. By doing this you’ll avoid losing all changes you made once you update your theme.

    With that being said you can add the code similar to one you used above with few modifications, so you’d want to add something like this:

    <div class=”headerbanner”><img src=”http://merrytomarry.ph/wp-content/uploads/2015/08/AMagicalEvent_Platinum_728x90-2.jpg&#8221; alt=”AMagicalEvent_Platinum_728x90 (2)”/></div>

    This will just add and image in your header, I’ve added a class to that specific div which we can use to apply different CSS to it. This means centering it, adding width, height etc.

    Hope this helps πŸ™‚

    Best regards,
    Bojan

    Thread Starter merrytomarry

    (@merrytomarry)

    Thank you very much, Bojan. But I am not familiar with the creation of a child theme. Do you think “Child Theme Configurator” (a child theme creator plugin) would work? Your idea made sense to me and the modifications you made to the code. πŸ™‚

Viewing 15 replies - 1 through 15 (of 25 total)

The topic ‘Header Ad’ is closed to new replies.