• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Sticky Menu Problem for Swank.

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Sticky Menu Problem for Swank.

This topic is: not resolved

Tagged: menu, navigation, sticky, sticky menu, swank

  • This topic has 8 replies, 4 voices, and was last updated 8 years, 5 months ago by Susan.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • April 9, 2015 at 5:17 pm #147258
    SamBell
    Member

    Hi Everyone,

    Hoping someone can help with this sticky menu for the Swank theme??

    I am trying to make it only visible when you scroll past the primary navigation. At the moment it is showing right from the top and it's also blinking. I was hoping someone could help me!!

    Thanks in advance.

    Website: http://www.sambellcreative.com/doulacare_ts/

    http://www.sambellcreative.com/doulacare_ts/
    April 11, 2015 at 7:38 am #147480
    Victor Font
    Moderator

    Your code is doing weird things. As soon as you scroll, the menu is duplicated in the source code. Since that's a third party theme and not a Studio Press theme, I would contact the theme developer for assistance.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 12, 2015 at 3:57 pm #147620
    Susan
    Moderator

    Sam - I've just tweeted out to see if I can get someone to take a look for you 🙂

    April 12, 2015 at 5:44 pm #147657
    SamBell
    Member

    Thanks for taking a look Victor.

    Thank you Susan!! I am stumped on this one!!

    April 12, 2015 at 10:12 pm #147673
    Genesis Developer
    Member

    You need to add the JS for it. JQuery syntax will be like this

    jQuery(window).scroll(function(){
     //* WRITE YOUR CODE HERE.
    });

    For more knowledge see this https://api.jquery.com/scroll/


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    April 12, 2015 at 10:18 pm #147674
    SamBell
    Member

    Hi Genesis Developer - Thank you =]
    Where do I add this? I have a folder called js with a file 'sticky-menu.js' - is that what you are talking about?? Or does that JQuery Syntax go somewhere else?
    Thanks.

    April 12, 2015 at 10:40 pm #147675
    Genesis Developer
    Member

    Yes. You will add it in js file.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    April 13, 2015 at 2:09 am #147678
    SamBell
    Member

    That code was actually already in the js file...

    I solved the problem but I ended up just deleting the fade in, fade out part - so its just fixed now.. it's not an ideal solution because now I can't have my social icons etc at the top, but this will have to do. Perhaps the theme just simply won't allow what I was hoping to achieve.

    Thanks everyone for your help!

    April 13, 2015 at 6:14 am #147698
    Susan
    Moderator

    Sam - for your social media icons - the theme uses the top bar left for the social icons, which is going to go away with a sticky header. You should be able to add back in your Header Right widget area (going by memory, I believe it's disabled in the functions.php file); you might find that they will work in that location 🙂

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble