Jump to content

Archived

This topic is now archived and is closed to further replies.

Kempston

Menu on patentank.com

Recommended Posts

Kempston

I'd like to be able to replicate the menu that appears as you scroll down the page. I don't like fixed menus but this provides a nice compact alternative.

Cheers

Rob

Share this post


Link to post
Share on other sites
batman

Hi Kempston

Please, you can try use the NavBar  ( NO Navi ) and drag and drop to header ( NO Fixed area) 


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
Aires

If you are comfortable with jQuery. This can be done pretty easily.

I would build a menu in the header and fixed region and use jquery to hide the fixed area till you scroll down the page.

If time permits i will do a screencast.

 

Aires 

 


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
Aires

Guess it would help to add the script and css

JS---

  jQuery(document).ready(function($) {

    var fadetime = 500;

    var mh = $('.pl-fixed-top, .fixed-top-pusher');
    var body = $('body');
    var width = parseFloat(body.css("width"));

    $(window).scroll(function(){
        if (width >= 768) {
            if ($(this).scrollTop() > 300) {
                mh.fadeIn(fadetime);
            } else {
                mh.fadeOut(fadetime);
            }
        }
    });

    $(window).resize(function(){

        width = parseFloat(body.css("width"));

        if (width < 964 || $(this).scrollTop() > 1) {
            mh.show();
        } else {
            mh.hide();
        }
   });
});

 

CSS--

 

@media only screen and (min-width: 768px) {
    .pl-fixed-top .fixed-top-pusher {
        -moz-transition: all 0s ease-in-out;
        -webkit-transition: all 0s ease-in-out;
        transition: all 0s ease-in-out;
        display: none;
    }
     .fixed-top-pusher {
      height: 0px !important;
    }
}

@media only screen and (max-width: 768px) {
   .fixed-top-pusher {
      height: 0px !important;
    }
}

 


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites
pehja

Awsome! Where did you put the jquery document?


Professionell musician | Webbdesigner | Apple freak

Pehja Production.png

Share this post


Link to post
Share on other sites
Aires

Hi,

You can apply  this in the head/script on the front end if you like.

I have gotten away from doing it this way simply because if there is an issue with your script the site may not load. So what i would recommend you do is use a child theme with a function.php and js file and enqueue the script that way if there is an issue you could always ftp and make changes.

And this has happened to me before because I write my own scripts ...errors and conflicts do happen with other plugins.

The script was tested on test site with only dms products no other plugins.

~Aires


ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites

  • Similar Content

    • russe-intensif
      By russe-intensif+
      Hi team,
      checking my site today, i'm surprised to see my MegaNav all in bottom of the pages, while it's in header.
      After getting to change it in couple of pages onto Template part (too time consuming !), i'm desperate and ask you for help :-)
      apprendre-le-russe-avec-ania.fr
      Thank you in advance !

    • dwpoyner
      By dwpoyner+
      Not sure exactly what is causing the issue. For some reason, why you view my site on mobile, the menu does not show up. It will pop up, but it is black. You can check it out here: http://dev.caryfbc.org. I'm also attaching a screenshot where I shrunk my browser down. Any suggestions?

    • khat
      By khat+
      I think I may have installed pagelines pro incorrectly, and then used features incorrectly. I installed first platforms framework theme and then the child, thinking I could do setup for child later. I tried to set up a background image, and tried custom css feature in pagelines dashboard. I had mistakes in my css, and just thought that if I deleted the info in the css custom feature in pagelines dashboard that the new information would overwrite the old info. The background image didn't respond at all, probably because I didn't have the child directory renamed. I then tried to use the LSS plugin to create css and added more css, possibly, somewhere -sigh-. I never did change the background image and get it placed properly. I used a workaround and in nested containers I placed a background image which worked well enough, so I moved on to try to create my nav bar/ menu bar. When I go to the Menus panel, there is NO area where I can place a menu on a page. I have read and reread and re- re- reread the instructions for placing a menu. I've used the pagelines editor to place a menu, however only HOME shows up. I've been at this for many hours. I've since uninstalled all of my pagelines items and reinstalled, thinking that it would restore all my changes to default, but no, it is still all there, with all my unresolved issues. I am completely at a loss as to what to do next.
    • Jarek
      By Jarek+
      How to make the Impulse menu sticky?
      Here is a site that seems like it is doing just that: http://www.manhattanperiodontist.com/
      Here is the site I am working on: http://boeriu.digitalvector.com/ 
      I have no problem showing the menu at the bottom, but when scrolling up it does not stick.  I tried to add Nav Pro menu but when I do that, it just shows on top and no matter what I try is not working as I want it to.
      Any suggestions?
    • Dave
      By Dave+
      1) Toggle menu on mobile devices does not work properly, combination Chrome 56.0.2924.87 with Android 6.0.1

      2) Mobile / Default Menu > Set the primary/default navigation for your site. This will be used in the pop out mobile menu and as the default in navigation sections. Does not work.
×