Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #484940

    Hello. The following code works great for increasing the size of the search icon on the desktop version of our site, but it messes up the mobile version of our site. Can you please advise what needs to be done, so that this code does not impact the mobile version?

    /*Increases the size of the search icon in header area*/
    .html_bottom_nav_header #top #menu-item-search>a {
    padding-right: 0;
    font-size: 22px !important;
    }

    Thanks!

    #484947

    Hey ACNLatitudes!

    You would need some media queries to play with, so you can fix the size of the element.
    More informations on how to use it and how to target different positions can be found here:
    https://css-tricks.com/snippets/css/media-queries-for-standard-devices/

    Regards,
    Basilis

    #484975

    Is there any other option (perhaps some different CSS code) that I can use to just enlarge the search icon on the desktop version of the site without needing to learn about all those different media queries?

    I tried using one of those media queries already and was unsuccessful.

    #485236

    Hi!

    Please use the code as following

    /*Increases the size of the search icon in header area*/
    @media only screen and (min-width: 990px) {
    .html_bottom_nav_header #top #menu-item-search>a {
    padding-right: 0;
    font-size: 22px !important;
    }}

    Cheers!
    Yigit

    #486708

    Thanks. I tried that, but it had no impact on the search icon (it is still small). Please advise.

    #486989

    Hi,

    Please try the following instead:

    @media only screen and (max-width: 990px) {
    #menu-item-search a {
    font-size:22px !important;
    }
    }

    Best regards,
    Rikard

    #487259

    I tried that and it still isn’t working. I’m posting my login info in case you want to take a look to see what is going on. Thanks!

    #487562

    Hi,

    It’s working but one of your other modifications is overriding unfortunately:

    @media only screen and (max-width: 1110px) {
    #top #header .av-main-nav > li > a {
      font-size: 11px !important;
    }
    }

    So I changed it to this and commented out your old code:

    @media only screen and (max-width: 1110px) {
    #avia-menu li a span.avia-menu-text {
    font-size:11px !important;
    }
    }

    Regards,
    Rikard

    #491737

    Thanks. I took a look at the site. The search icon is big when I resize my browser down to a much smaller size, but the search icon is still small when the browser is shown at a normal or wiser size. Please advise.

    #492591

    Hi,

    If you want the same size for larger screens as well then just remove the media query:

    #top #header .av-main-nav > li > a {
      font-size: 11px !important;
    }

    Best regards,
    Rikard

    #501951

    Thanks for the reply, but I don’t fully understand your response. The code you are referencing appears to be the same code that you commented out. If I un-comment that code and remove the media query, then the search icon looks small on all screen sizes.

    Please clarify what I need to do in order to have the search icon big (to look the same size as it currently looks on “non-mobile” smaller screens.

    Thanks.

    #502034

    Hi,

    Try adding the following before the media queries:

    #avia-menu li a span.avia-menu-text {
    font-size:20px !important;
    }

    Thanks,
    Rikard

    #516997

    I was able to accomplish what I needed by simply increasing the max-width to 2000px as shown below.

    /*Increases the size of the search icon in header area*/
    @media only screen and (max-width: 2000px) {
    #menu-item-search a {
    font-size: 22px !important;
    }
    }

    You can close out this ticket. Thanks!

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Increasing the Size of the Search Icon on Desktop Version of Site’ is closed to new replies.