Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #912622
    belayachimarouane
    Participant

    Hello,

    I tried putting out a JS code to replace the logo already defined in the customisation tab with another one when scrolling.
    However the code doesn’t work.

    I work on local host and I use integrity.

    Thank you

    #912979
    Joao
    Moderator

    Hi There,

    Could you try this snippet, please add it to your Customizer / Javascript and replace the SMALL LOGO FILE with your logo url

    jQuery(function($) {
    $(window).scroll(function() {
           if($('.x-navbar').hasClass('x-navbar-fixed-top')) {
                   $('.x-navbar-fixed-top .x-brand img').attr('src','SMALL LOGO FILE.PNG');
           }
    });
    
    });
    

    Let us know how it goes

    Thanks,

    Joao

    #913312
    belayachimarouane
    Participant

    Hello! Thanks a lot.

    One more thing. The scroll down anchor takes me to the next row automatically, however it’s a full height row and I want it to stop in it instead of stoping before it.

    Is it possible with CSS ?

    Thank you

    #913707
    Friech
    Moderator

    Hi There,

    Is there a chance that you can upload the site on staging environment, so we can take a closer look?

    Thanks.

    #978412
    belayachimarouane
    Participant

    Hello,

    I have done it here : http://www.garcondusiecle.com

    but please ignore my first thread as I have solved it.
    The big problem is that I am having big trouble with responsiveness (only for different laptop and desktop screens as I am developping a landing page for mobile)
    It gets very messy when I try it on different screen resolution and I don’t know why… Is there any better CSS practices for images and centering elements inside the columns ? That have been my biggest struggle…

    Any suggestions ?

    Many thanks!

    #978463
    belayachimarouane
    Participant

    I wonder why the text isn’t responsive too..

    #978675
    Joao
    Moderator

    Hi There,

    You could try setting up your font-size using : em instead of pxs.

    And your paddings and margins using % instead of px

    px is an absolute measure while the others will change accordingly to your screensizes.

    Once you have done that, let us know if you are still experiencing layout issues and we can help you with some css and media queries if necessary.

    You also have an option in Cornerstone where you can hide sections according to the screen sizes at the very bottom of the section tab.

    If you are interested on learning about how to apply different CSS to elements of your website according to the screen size you can read a bit about media queries it is a very powerful resource that allow great tricks on this responsive world 🙂

    Let us know how it goes.

    Joao

    #978912
    belayachimarouane
    Participant

    Hello,

    Thank you for getting back on this issue.
    The problem is that I am using full height sections with 100hv so I need pictures to fit that size that’s why giving a height of 100% to picture wouldn’t work I guess..

    Thank you

    #979693
    Rue Nel
    Moderator

    Hello There,

    Please edit your page and make sure that your margin, padding, heights, etc. that is in vh should only be applied to larger screens. The best recommendation I could give you is to add a custom class to the elements which you do have and use something line this:

    @media(min-width: 980px){
      .secs {
        height: 92vh !important;
      }
    }

    Having it this way will ensure that the vh will only be applied to screen larger than 980px.

    You can also apply the responsive text to your custom headline and manage it in Settings > Responsive Text. To know more about the responsive text and how you can properly apply it, please check it here: https://community.theme.co/kb/shortcode-walkthrough-responsive-text/

    Hope this helps. Kindly let us know.

    #980896
    belayachimarouane
    Participant

    Thanks a lot! I will read more about the responsive text!

    #980913
    Thai
    Moderator

    You’re most welcome 🙂

    If you need anything else please let us know.

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