• 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

Remove after header section from archive page

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 › Remove after header section from archive page

This topic is: not resolved

Tagged: Genesis Portfolio Pro plugin

  • This topic has 3 replies, 3 voices, and was last updated 9 years ago by SiteWriters.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 9, 2016 at 5:46 am #195932
    andrea12091980
    Member

    Hello everybody.
    I'm using Genesis Portfolio Pro plugin and I'd like to completely remove after-header section form my archive page.
    Here's the code of the profolio archive page:

    -

    <html lang="it-IT" debug="true">
    <head>
    <body class="archive post-type-archive post-type-archive-portfolio logged-in admin-bar custom-header header-image header-full-width full-width-content genesis-pro-portfolio js customize-support" itemscope="" itemtype="http://schema.org/WebPage" data-pinterest-extension-installed="cr2.0.5">
    <div class="site-container">
    <section>
    <header class="site-header" itemscope="" itemtype="http://schema.org/WPHeader">
    <div class="after-header">
    <div class="wrap">
    </div>
    <div class="site-inner">
    <div id="footer" class="flex-footer footer-widgets">
    <footer class="site-footer" itemscope="" itemtype="http://schema.org/WPFooter">
    </div>
    <script type="text/javascript" src="http://www.zenzeroandco.com/wp-includes/js/admin-bar.min.js?ver=4.6.1"/>
    <script type="text/javascript" src="http://www.zenzeroandco.com/wp-includes/js/hoverIntent.min.js?ver=1.8.1"/>
    <script type="text/javascript" src="http://www.zenzeroandco.com/wp-content/themes/genesis/lib/js/menu/superfish.min.js?ver=1.7.5"/>
    <script type="text/javascript" src="http://www.zenzeroandco.com/wp-content/themes/genesis/lib/js/menu/superfish.args.min.js?ver=2.4.2"/>
    <script type="text/javascript">
    <script type="text/javascript" src="http://www.zenzeroandco.com/wp-content/themes/workstation-pro/js/responsive-menu.js?ver=1.0.0"/>
    <script type="text/javascript" src="http://www.zenzeroandco.com/wp-includes/js/wp-embed.min.js?ver=4.6.1"/>
    <script type="text/javascript">
    <div id="wpadminbar" class="">
    </body>
    <script src="chrome-extension://bmagokdooijbeehmkpknfglimnifench/googleChrome.js"/>
    </html>

    -

    The <div class="after-header">...</div> is what I need to remove.
    Anyone can help me?

    http://www.zenzeroandco.com/portfolio/
    November 9, 2016 at 7:43 am #195940
    Victor Font
    Moderator

    I haven't tested this but think it would work for you. Change the following in functions.php at line 163:

    if ( is_post_type_archive() && genesis_has_post_type_archive_support() ) {

    To:

    if ( is_post_type_archive() && genesis_has_post_type_archive_support() && ! is_page('portfolio') ) {


    Regards,

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

    November 9, 2016 at 8:31 am #195945
    andrea12091980
    Member

    Thank you Victor.
    I have tried but nothing seems to change...
    Any other idea?

    January 17, 2017 at 12:12 am #199528
    SiteWriters
    Participant

    In the Page-specific scripts box at the bottom of your Archive edit page (2-3 screenloads down), try:

    .after-header {
    display: none
    }

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

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