• 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

Fixed Header and One Page Design

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 › General Discussion › Fixed Header and One Page Design

This topic is: resolved

Tagged: css classes, Custom Walker, fixed header, menu, modern portfolio, navigation

  • This topic has 1 reply, 1 voice, and was last updated 8 years ago by Kary.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 24, 2014 at 2:41 pm #115758
    Kary
    Member

    Hi,
    I'm using the Modern Portfolio theme and have made some customizations. I have created a fixed header so the navigation bar is always accessible. However, my header is larger in height than the default so I am having issues with the named anchor tags.

    Currently, the top of each named anchor is appearing too far up the page...hidden by the now larger header. I need to change it and have found some solutions. But I can't get them to work because of the way WordPress places the custom CSS tag in the navigation/menu. It places the custom CSS class onto the <li> tag. Like this <li> <class="custom tag">

    I need it placed on the anchor tag itself like this <a class="custom tag" href=...>

    I have found a way to do this using something called a Custom Walker, where anything placed on the LI tag will also be placed on the anchor tag. Obviously I don't know if it will work because I am unable to tinker with the theme files like the instructions say to do. So my question is in two part.

    Do you think this is the right way to handle this? Here are are the instructions.... http://stackoverflow.com/questions/23325379/add-custom-classes-to-wordpress-navigation-anchor-tags-not-lis

    And if so, how would I do this in Genesis/Studiopress??

    If you don't think this is the right way to go, then what??

    http://vlearningstudio.com/
    July 25, 2014 at 9:07 am #115824
    Kary
    Member

    I got it to work but had to do a lot of tinkering with the Function.php, home.php and style.php files. It's simple but quite involved. If anyone wants to read how to make this work, I can come back and explain it here.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Fixed Header and One Page Design’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 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