Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #994884
    nikolasa
    Participant

    Heya – just needing the CSS to help style the mobile menu. I’ve got the main site set up using a transparent header – but that is making the mobile header transparent too.

    Any suggestions? Thanks!

    #994886
    nikolasa
    Participant
    This reply has been marked as private.
    #994955
    John Ezra
    Member

    Hi there,

    Thanks for writing in! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.

    @media (max-width:767px) {
        header.masthead.masthead-stacked, .x-logobar, .x-navbar-wrap, .x-navbar {
            background: #000!important;
            padding-bottom:20px;
        }
    }

    Hope this helps – thanks!

    #995018
    nikolasa
    Participant

    Hmmm, that didn’t quite work. I’ve added the css to the customiser… we have two licenses with you. The other site that code worked for but this site (maori.tech) didn’t work.

    Hmmm… and suggestions please xo

    #995028
    nikolasa
    Participant

    This is what it still looks like

    (´・ω・`)

    #995039
    Rupok
    Member

    Hi there,

    I can’ see the suggested code on your site rather some other code with !important tag that forces it to be transparent. Make sure to add the code correctly and make all other codes are correct and there is no glitch (closed with curly braces).

    Thanks

    #996323
    nikolasa
    Participant

    I was given THIS code to make the header transparent:

    header.masthead.masthead-stacked, 
    .x-logobar,
    .x-navbar-wrap,
    .x-navbar {
        background: transparent!important;
        box-shadow: none;
        border: none;
    }
    

    If I remove it – I get a strange white (attached)

    I have added this in the global css settings

    @media (max-width:767px) {
        header.masthead.masthead-stacked, .x-logobar, .x-navbar-wrap, .x-navbar {
            background: #000!important;
            padding-bottom:20px;
        }
    }

    But it is also on the home page.

    ALSO – I’m getting that weird circle (which is the arrow that the menu uses) – don’t know how to remove it.

    Yep I understand I have to close my code using } as well as ; at the end of each string. thanks.

    #996324
    nikolasa
    Participant

    Here is the screenshot

    #996326
    nikolasa
    Participant

    That circle thing is also in the upper top left of the screen.

    #996743
    Nabeel A
    Moderator

    Hi again,

    To fix scroll-bottom anchor:

    .x-slider-scroll-bottom.left {
        left: 47% !important;
    }
    .x-slider-scroll-bottom.top {
        top: auto !important;
        bottom: 0 !important;
    }

    For the menu, please try adding the following code:

    header.masthead.masthead-stacked, .x-logobar, .x-navbar-wrap, .x-navbar {
        position: absolute !important;
        width: 100% !important;
    }

    Let us know how this goes!

    #996891
    nikolasa
    Participant

    ok, i’m confused. I’ve got css within pages (via the custom css) in cornerstone. and i’ve got what seems to be the more global css – when you hit customizer > css.

    This is what I’ve got via customizer:

    
    h1, .h1 { 
      font-size: 60px; 
      color: #fff;
    }
    
    h2, .h2 { 
      font-size: 30px; 
      color: #4e1e9f;
    }
    
    h3, .h3 { 
      font-size: 30px; 
      color: #4e1e9f;
    }
    
    h4, .h4 { 
      font-size: 24px; 
      color: #211328;
    }
    
    h5, .h5 { 
      font-size: 18px; 
      color: #211328;
    }
    
    h6, .h6 {
      font-size 18px
      color: #fff;
    }
    
    .x-colophon {
        background-color:#3a3a3a !important;
        border-top: none; 
    }
    
    .x-colophon.bottom {
        padding: 10px 0;
        font-size: 10px;
        text-align: center;
        background-color: #202020 !important;
    }
    
    .x-colophon.top, .x-colophon.bottom {
        border-top: medium none;
        box-shadow: none;
      
    @media (max-width:767px) {
        header.masthead.masthead-stacked, .x-logobar, .x-navbar-wrap, .x-navbar {
            background: #000 !important;
            padding-bottom:20px;
        }
    }
      
      .x-colophon .widget {
        text-shadow: none;
    }
    
    .x-slider-scroll-bottom.left {
        left: 47% !important;
    }
    .x-slider-scroll-bottom.top {
        top: auto !important;
        bottom: 0 !important;
    }
      
      header.masthead.masthead-stacked, .x-logobar, .x-navbar-wrap, .x-navbar {
        position: absolute !important;
        width: 100% !important;
    }

    I also have separate css styling on the two pages I’ve uploaded.

    Homepage:

    header.masthead.masthead-stacked, 
    .x-logobar,
    .x-navbar-wrap,
    .x-navbar {
        background: transparent;
        box-shadow: none;
        border: none;
    }
    
    .x-slider-container.below {
        margin-top: -174px;
    }
    
    .page-id-5 blockquote {
        color: #fff;
      
    @media (max-width:767px) {
        header.masthead.masthead-stacked, .x-logobar, .x-navbar-wrap, .x-navbar {
            background: #000!important;
            padding-bottom:20px;
        }
    }
      
      .x-slider-scroll-bottom.left {
        left: 47% !important;
    }
    .x-slider-scroll-bottom.top {
        top: auto !important;
        bottom: 0 !important;
    }
      
        .x-colophon .widget {
        text-shadow: none;
    }
      
      .x-slider-scroll-bottom.left {
        left: 47% !important;
    }
      
    .x-slider-scroll-bottom.top {
        top: auto !important;
        bottom: 0 !important;
    }

    And Our Story

    /*
    No need for style tags here;
    simply get started by writing
    CSS! Watch as your changes
    are reflected live in the
    preview area. Have fun!
    */
    
    .page-id-24 .x-navbar {
      border: none;
      box-shadow: none;
      
    }
    
    body.x-navbar-fixed-top-active .x-navbar-wrap {
        height: 0px;
    }
    
    img {
        width: 50%;
    }
    
    .page-id-24 .masthead {
        height: 0;
    }
    
    .dark {
      color: #fff;
      font-size: 18px;
    }
    
    .x-colophon .widget {
        text-shadow: none;
    }
    
    h6, .h6 {
      font-size 18px
      color: #fff;
    }

    I realise that I’m repeating code, but when I place it in the Customizer > CSS area, it doesn’t work (for instance the .widget css – only when I placed that within the Our Story page did I get any changes happening.

    The mobile menu is still transparent when responsive to mobile.

    THanks!!

    OH the scroll anchor is code is not working either.

    #996911
    Christopher
    Moderator

    Hi there,

    Find this code :

    .x-navbar {
        background-color: transparent;
    }
    .x-slider-container.below {
        margin-top: -174px;
    }
    

    And update it to :

    @media (min-width:979px){
    .x-navbar {
        background-color: transparent;
    }
    .x-slider-container.below {
        margin-top: -174px;
    }
    }

    Add this in customizer :

    .x-navbar .x-nav-wrap.mobile .x-nav > li > a {
        color: red;
    }

    Please let us know which CSS code doesn’t work in customizer?

    Thanks.

    #998524
    nikolasa
    Participant

    Thanks for that, this changes the homepage header and removes the transparent header (but I wanted that to stay on the desktop version) it now works in mobile, but I can’t seem to change the colour. It does not work on the other page – Our Story though.

    The code that is not working is the one to remove the text shadow. I’ve used this code on the Our Story page and it works but when I use it on the homepage, it doesn’t.

    .x-colophon .widget {
        text-shadow: none;
    }
    
    #998836
    Paul R
    Moderator

    Hi,

    1. To fix header in your homepage, add this in custom Edit Global css

    
    .home header.masthead {
         width:100%;
         position:absolute;
         top:0;
    }
    

    2. To remove text shadow, you can try this code instead.

    
    .x-colophon.top .widget {
    	text-shadow: none !important;
    }
    

    Hope that helps.

    #1006281
    nikolasa
    Participant

    Thank you both those codes worked.

    I was given this code

    @media (min-width:768px) {
        .x-column.x-md.x-1-3 {
            width: 22%
        }
    
        .x-column.x-md.x-1-3:first-child {
            width: 48%
        }
    }}

    To change the width of the footer widgets and it worked but not on the home page. Could you tell me if I have to add something else to make it work there?

  • <script> jQuery(function($){ $("#no-reply-994884 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>