• Resolved briank9trainer99

    (@briank9trainer99)


    Hello, can I have the CSS to make the mobile text and social icons of my top bar in the header bigger please?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • Hi @briank9trainer99,

    Try this CSS code:

    @media only screen and (max-width: 900px) {
    .social-profile .sydney-svg-icon {
    width: 40px;
    height: 40px;
    }

    .header-elements .social-profile .sydney-svg-icon svg {
    max-height: 40px;
    }
    }

    Hope that helps.

    Thread Starter briank9trainer99

    (@briank9trainer99)

    Hello, I tried that but it did not work. I would like to make the text, phone number and social icons bigger on mobile in the top bar

    Hi @briank9trainer99,

    Thank you for getting back, try this CSS code:

    @media only screen and (max-width: 900px) {

    .header-elements .header-item {
    font-size: 26px;
    }


    .social-profile .sydney-svg-icon,
    .header-elements .header-item .sydney-svg-icon {
    width: 26px;
    height: 26px;
    }

    .header-elements .header-item .sydney-svg-icon svg,
    .header-elements .social-profile .sydney-svg-icon svg {
    max-height: 26px;
    }

    }
    Thread Starter briank9trainer99

    (@briank9trainer99)

    Thank you, but it still did not work.

    Hi @briank9trainer99,

    Do you have caching enabled on your site? If so, please try clearing/flushing your cache – this will ensure any recent changes appear correctly in your browser. Ref: https://wordpress.org/documentation/article/faq-i-make-changes-and-nothing-happens/

    Thread Starter briank9trainer99

    (@briank9trainer99)

    Yes I always clear the caching on the site and the individual pages.

    This is all the css that I have added. Do you see anything in here that might be over writing what you sent me?

    roll-button{
    background-color :#233452;
    border-color: #64f200;
    color: #ffffff
    }

    /* On hover state */
    .roll-button:hover{
    background-color: whitesmoke;
    border-color: #233452; color: #233452;

    }
    header#masthead img.site-logo {
    max-height: 120px;

    }

    @media (min-width: 768px)
    {
    .text-slider .maintitle {
    font-size: 43px;
    }

    .text-slider .subtitle {
        font-size: 31px;
    }

    }
    /**

    • Fix slider header title font size
    • on mobile screen
      */

    @media only screen and (max-width:639px) {

    .text-slider .maintitle {
    font-size: 20px;
    }
    .slide-item::after {
    content: ”;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    }

    @media only screen and (max-width: 767px) {
    header#masthead div.col-md-4.col-sm-8.col-xs-12 {
    max-width: 73%;
    }

    header#masthead div.col-md-4.col-sm-8.col-xs-12,
    header#masthead div.col-md-8.col-sm-4.col-xs-12 {
        width: auto;
    }
    
    header#masthead div.col-md-8.col-sm-4.col-xs-12 {
        float: right;
        padding: 2px 30px;
    }
    
    header#masthead nav#mainnav-mobi {
        left: -194px;
        width: 250px;
    }

    }

    @media only screen and (max-width: 991px){

    .site-header{
    margin-top: -50;
    }

    }
    .text-slider h1.maintitle {
    font-size: 30px !important;
    }
    .sydney-hero-area
    height: auto !Important;
    }
    .header-slider {
    height: 400px !important;
    }

    }@media only screen and (min-width: 768px) {
    .text-slider .maintitle {
    font-weight: bold; font-size: 60px !important;
    }
    .text-slider .subtitle {
    font-weight: bold; font-size: 30px !important;
    }
    }

    @media only screen and (max-width: 991px) {
    .text-slider .maintitle {
    font-size: 34px;
    }
    .text-slider .subtitle {
    font-size: 24px;
    }
    }

    .home #main.content-area {
    padding-top: 0;
    }
    .home .entry-content > .alignfull:first-child {
    margin-top: 0;
    }
    @media only screen and (max-width: 1024px) {
    .site-header {
    padding-top: 0;
    }
    .header-contact {
    padding-bottom: 0;
    }
    }
    .site-content {
    margin-bottom: 0px;
    }
    .fl-builder-content {
    margin-bottom: 0;
    }
    @media only screen and (max-width: 800px) {
    .site-logo {
    max-height: 110px !important;

    @media ( max-width: 1366px ) { 

    .slides-container .slide-item {
    background-position:center!important;background-attachment:scroll!important;
    }
    @media only screen and (max-width: 900px) {

    .header-elements .header-item {
        font-size: 29px;
    }
    
    
    .social-profile .sydney-svg-icon,
    .header-elements .header-item .sydney-svg-icon {
        width: 29px;
        height: 29px;
    }
    
    .header-elements .header-item .sydney-svg-icon svg,
    .header-elements .social-profile .sydney-svg-icon svg {
        max-height: 29px;   
    }

    }

    Hi @briank9trainer99,

    Try to validate your CSS code with this tool: https://jigsaw.w3.org/css-validator/#validate_by_input. Ensure any error is fixed.

    Thread Starter briank9trainer99

    (@briank9trainer99)

    Thank you, everything is good with that.

    Is there any other css code that will change the font size of the top bar on my mobile?

    Hi @briank9trainer99,

    I checked your CSS code with an online validation tool mentioned above. It shows 5 errors. This causes any code that presents after first error line won’t work. See https://i.snipboard.io/FPQfbO.jpg

    Please fix those errors first.

    Thread Starter briank9trainer99

    (@briank9trainer99)

    Search Labs | AI Overview

    Learn more

    No, generally, CSS errors don’t cause newer CSS rules to stop working; browsers are designed to ignore errors and continue parsing the CSS, applying valid rules. 

    Here’s a more detailed explanation:

    • Error Recovery:When a CSS error is encountered, the browser’s parser will skip the line containing the error and continue parsing the rest of the CSS file. 
    • Fallbacks:Browsers are designed to gracefully handle CSS errors by ignoring invalid rules or properties, ensuring that the rest of your CSS styles are applied. 
    • Specificity:If a CSS rule is invalid, it will not be applied, but the browser will continue to parse and apply valid rules that follow it. 
    • Debugging:If you encounter CSS issues, use browser developer tools to identify and fix errors in your CSS code. 
    • Caching:If you are not seeing your CSS changes reflected, ensure that your browser cache is cleared or that you are using a hard refresh to ensure that you are viewing the latest version of your CSS file. 
    Thread Starter briank9trainer99

    (@briank9trainer99)

    Search Labs | AI Overview

    Learn more

    No, generally, CSS errors don’t cause newer CSS rules to stop working; browsers are designed to ignore errors and continue parsing the CSS, applying valid rules. 

    Here’s a more detailed explanation:

    • Error Recovery:When a CSS error is encountered, the browser’s parser will skip the line containing the error and continue parsing the rest of the CSS file. 
    • Fallbacks:Browsers are designed to gracefully handle CSS errors by ignoring invalid rules or properties, ensuring that the rest of your CSS styles are applied. 
    • Specificity:If a CSS rule is invalid, it will not be applied, but the browser will continue to parse and apply valid rules that follow it. 
    • Debugging:If you encounter CSS issues, use browser developer tools to identify and fix errors in your CSS code. 
    • Caching:If you are not seeing your CSS changes reflected, ensure that your browser cache is cleared or that you are using a hard refresh to ensure that you are viewing the latest version of your CSS file. 
    Thread Starter briank9trainer99

    (@briank9trainer99)

    If so can you tell me the correct lines for each of these please?

    34.slide-item afterValue Error : content Parse Error 1

    67.site-headerValue Error : margin-top only 0 can be a unit. You must put a unit after your number : -50

    68.site-headerParse Error 1 }

    80Parse Error }

    144Parse Error

    ↑ Top

    Hi @briank9trainer99,

    Try replacing your entire custom CSS code with these, which contain error fixes:

    .roll-button {
    background-color: #233452;
    border-color: #64f200;
    color: #ffffff;
    }

    .roll-button:hover {
    background-color: whitesmoke;
    border-color: #233452;
    color: #233452;
    }
    header#masthead img.site-logo {
    max-height: 120px;
    }

    @media (min-width: 768px) {
    .text-slider .maintitle {
    font-size: 43px;
    }

    .text-slider .subtitle {
    font-size: 31px;
    }
    }

    @media only screen and (max-width: 639px) {
    .text-slider .maintitle {
    font-size: 20px;
    }
    .slide-item after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    }
    }
    @media only screen and (max-width: 767px) {
    header#masthead div.col-md-4.col-sm-8.col-xs-12 {
    max-width: 73%;
    }

    header#masthead div.col-md-4.col-sm-8.col-xs-12,
    header#masthead div.col-md-8.col-sm-4.col-xs-12 {
    width: auto;
    }

    header#masthead div.col-md-8.col-sm-4.col-xs-12 {
    float: right;
    padding: 2px 30px;
    }

    header#masthead nav#mainnav-mobi {
    left: -194px;
    width: 250px;
    }
    }

    @media only screen and (max-width: 991px) {
    .site-header {
    margin-top: -50px;
    }
    .text-slider h1.maintitle {
    font-size: 30px !important;
    }
    }
    .header-slider {
    height: 400px !important;
    }

    @media only screen and (min-width: 768px) {
    .text-slider .maintitle {
    font-weight: bold;
    font-size: 60px !important;
    }
    .text-slider .subtitle {
    font-weight: bold;
    font-size: 30px !important;
    }
    }

    @media only screen and (max-width: 991px) {
    .text-slider .maintitle {
    font-size: 34px;
    }
    .text-slider .subtitle {
    font-size: 24px;
    }
    }

    .home #main.content-area {
    padding-top: 0;
    }
    .home .entry-content > .alignfull:first-child {
    margin-top: 0;
    }
    @media only screen and (max-width: 1024px) {
    .site-header {
    padding-top: 0;
    }
    .header-contact {
    padding-bottom: 0;
    }
    }
    .site-content {
    margin-bottom: 0px;
    }
    .fl-builder-content {
    margin-bottom: 0;
    }
    @media only screen and (max-width: 800px) {
    .site-logo {
    max-height: 110px !important;
    }
    }
    @media (max-width: 1366px) {
    .slides-container .slide-item {
    background-position: center !important;
    background-attachment: scroll !important;
    }
    }
    @media only screen and (max-width: 900px) {
    .header-elements .header-item {
    font-size: 29px;
    }

    .social-profile .sydney-svg-icon,
    .header-elements .header-item .sydney-svg-icon {
    width: 29px;
    height: 29px;
    }

    .header-elements .header-item .sydney-svg-icon svg,
    .header-elements .social-profile .sydney-svg-icon svg {
    max-height: 29px;
    }
    }
    Thread Starter briank9trainer99

    (@briank9trainer99)

    It all works!! Thank you so much!!

    Now I am realizing how small the desktop top bar is..

    How do i increase the size of the desktop top bar font size?

    It all works!! Thank you so much!!

    Great!

    How do i increase the size of the desktop top bar font size?

    Try adding this CSS code:

    @media only screen and (min-width: 901px) {

    .header-elements .header-item {
    font-size: 36px;
    }

    .social-profile .sydney-svg-icon,
    .header-elements .header-item .sydney-svg-icon {
    width: 36px;
    height: 36px;
    }

    .header-elements .header-item .sydney-svg-icon svg,
    .header-elements .social-profile .sydney-svg-icon svg {
    max-height: 36px;
    }

    }
Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘CSS to make my mobile top bar text bigger’ is closed to new replies.