• Hi Mark,

    As the title says, yours is the only one that worked the way I needed it to work. I am using Genesis + DWB + Dambuster (to control what pages the header appears on, among other things) and none of the other plugins nor code snippets would do the job.

    However, as your plugin only handles one element, I needed to find a way to have it use both the menu AND the header. I found this code snippet on the DWB forum which combines the two into one div, which has it’s own class. Added this to the Dynamic Custom > Functions section and there ya go, it works like a charm ??

    On those pages with just the menu, the menu sticks; on ones with both header and menu, they both stick ??

    For others looking for this functionality, here is the snippet, courtesy of ‘Junior Atoms’ of the DWB forum:

    //* Open stick-header div
    add_action( 'genesis_before_header', 'dynamik_open_stick_header', 2 );
    function dynamik_open_stick_header() {
    
        echo '<div class="stick-header">';
    
    }
    
    //* Close stick-header div
    add_action( 'genesis_after_header', 'dynamik_close_stick_header', 12 );
    function dynamik_close_stick_header() {
    
        echo '</div>';
    
    }

    Cheers!
    Lyle

  • The topic ‘The ONLY one that worked the way I needed it to :)’ is closed to new replies.