Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7965189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:04:44+00:00 2026-06-04T06:04:44+00:00

I’m having trouble with ads – I’ve placed them in widgets and now the

  • 0

I’m having trouble with ads – I’ve placed them in widgets and now the mobile version of the site sucks – the ads are too big for a phone and ruin the theme. What I came up with right now is this:

.mobile #widget{
display: none;
}

But the thing is, the #widget doesn’t work and I don’t know how if it’s possible to get rid of widgets like that. Please correct me if I’m wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T06:04:45+00:00Added an answer on June 4, 2026 at 6:04 am

    What you wrote doesn’t really make much sense because you’re writing your CSS as if this scenario existed:

    <div class="mobile">
        <div id="widget">your ad</div>
    </div>
    

    This obviously does not exist.

    You can see here how the theme targets mobile devices with @media queries from the CSS file located on your site:

    http://nix-pix.co.uk/wp-content/themes/alyeska/assets/css/responsive.css

    So, it’s actually pretty simple — Any custom styles you want to target mobile would simply be placed inside a @media query like this:

    @media(max-width:480px){
        /* All styles for mobile devices go here. */
    }
    

    What that basically says in plain English is: “IF the device’s viewport is 480px or less, include this CSS” — This is quickly becoming one of the most modern and popular ways to target mobile devices because there are now so many out there. Many believe it’s sort of backwards thinking to try use javascript or the user agents with PHP to specifically target the iPhone or the Android phone, etc. These methods definitely have their purpose, but not really for things that are this simple, in my opinion. Instead, we use CSS @media queries to target different device widths.

    Ok, so now you want to hide where you have that Ad area towards the bottom of the content. Upon inspecting it with a tool like Firebug or Google Chrome’s web developer tools, we can quickly see it’s wrapped in a class called “main-bottom” —

    In this screenshot, I'm using Firebug, an extension for Firefox.

    Since we know in CSS when you’re referring to a class we prefix it with a period, and to hide an element we can use the display property, we’d just now put this into our @media query.

    @media(max-width:480px){
        .main-bottom {
            display:none;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.